-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclass5.ts
42 lines (36 loc) · 840 Bytes
/
class5.ts
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
// let emailandpassword = true
// if(emailandpassword){
// console.log("Signed in.WELCOME to Discord")
// }
// else{
// console.log("Your email & password is wrong.Please try again")
// }
// let emailandpass = false
// if(emailandpass){
// console.log("Signed in.WELCOME to Discord")
// }
// else{
// console.log("Your email & password is wrong.Please try again")
// }
//for printing grades
let percentage = 100
if (percentage >= 90 && percentage <= 100)
{
console.log("GRADE A+")
}
else if (percentage >= 80 && percentage < 90)
{
console.log("GRADE A")
}
else if (percentage >= 70 && percentage < 80)
{
console.log("GRADE B")
}
else if(percentage >= 60 && percentage < 70)
{
console.log("GRADE C")
}
else
{
console.log("FAIL")
}