-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path26_july.js
55 lines (41 loc) · 1.27 KB
/
26_july.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// let x = 0.2 - 0.1; // => 0.1
// let y = 0.4 - 0.3;
// 101 => 5
// 5.5 =>
// 2.4 => 2
// 2.6 => 3
//
// 64 bit 2^63-1
// console.log(x);
// console.log(y);
// console.log(x == y);
// function miniclass(M, N) {
// let seventyFivePercentOfm = Math.ceil(M*3/4);
// if(N < seventyFivePercentOfm){
// return seventyFivePercentOfm - N;
// }
// return 0;
// }
// console.log(miniclass(7, 7));
// let ans = 0;
// if (N < Math.ceil(0.75 * M)) ans = Math.ceil((0.75 * M - N) / 0.25);
// else ans = 0;
// return ans;
// }
// let M = 50, N = 10;
// Requirements: "Problem Statement - 1
// Write a function astroguru that:
// Takes four arguments: number of children, spouses name, location and job
// Output the following string: “You will be a ‘job’ in ‘location’ and married to ‘partner’ with ‘numkids’.”
// function astroguru(numberOfChildern, spousesName, location, job){
// console.log(`You will be a ${job} in ${location} and married to ${spousesName} with ${numberOfChildern} children`)
// }
// astroguru(2, "pinki", "kerla", "swe");
// 0 to 1000
// 0 2 4 6 8 10 12 14
// l ans r
// print even number between l and r without using % opretor
// l = 13, r = 101
// for(let i = 0; i <= 1000; i+=2){
// console.log(i);
// }