-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathq7.txt
More file actions
24 lines (23 loc) · 670 Bytes
/
q7.txt
File metadata and controls
24 lines (23 loc) · 670 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
Console.WriteLine(" Enter Your Marks : ");
int a = Convert.ToInt32(Console.ReadLine());
if(a<60)
{
Console.WriteLine(" Failed! ");
}
if (a> 60 && a < 70)
{
Console.WriteLine(" D ");
}
if (a > 70 && a < 80)
{
Console.WriteLine("C! ");
}
if (a > 80 && a < 90)
{
Console.WriteLine(" B! ");
}
if (a >90 && a < 100)
{
Console.WriteLine(" A! ");
}
Console.ReadLine();