-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproblem12.js
More file actions
28 lines (18 loc) · 707 Bytes
/
problem12.js
File metadata and controls
28 lines (18 loc) · 707 Bytes
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
/* If you have more than 80000 Taka you will buy a macbook,
if the ammount is more than 60000 you will buy a gamming laptop, if the amount is more than 40000 you will buy a lenovo yoga. If the amount is 20000 taka then you buy a secondhand laptop. Otherwise you will use a smart phone. Now solve the problem. */
var myBudget = 50000;
if( myBudget > 80000){
console.log("I will buy a mac book");
}
else if( myBudget > 60000){
console.log("I will buy a gaming laptop. ");
}
else if (myBudget > 40000){
console.log("I will buy a lenovo youg");
}
else if ( myBudget > 20000){
console.log("I will buy a second hand laptop");
}
else{
console.log("I will work with my smartphone");
}