-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproblem.js
87 lines (51 loc) · 1.1 KB
/
problem.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
// /// Find Minimum value between three value
// let x = 0;
// let y = 2;
// let z = 11;
// if (x<y && x<z)
// {
// console.log("your minimum value is: " + x);
// }
// else if(y<x && y<z)
// {
// console.log("your minimum value is: " + y);
// }
// else{
// console.log("your minimum value is: " + z);;
// }
// // CHeck the given triangle is valid
// let x = 7 , y = 10 , z = 3;
// if (((x+y)> z) && ((y+z) > x) && ((x+z)> y))
// {
// console.log("valid triangle:");
// }
// else
// {
// console.log(" not valid triangle:");
// }
// equilateral triangle
// let x = 4, y = 2, z = 3;
// if(x == y == z)
// {
// console.log("equilateral triangle");
// }
// else if(x== y || y==z || x==z)
// {
// console.log("isocelses triangle");
// }
// else{
// console.log("scaler triangle");
// }
// sum of all the no from 1 to 10
// let x = 20;
// while(x>=1)
// {
// console.log(x);
// x--;
// }
// for(let i = 1; i<=25; i = i++)
// {
// if(i % 2==0){
// console.log(i );
// }
// }