-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathq3.txt
More file actions
32 lines (30 loc) · 983 Bytes
/
q3.txt
File metadata and controls
32 lines (30 loc) · 983 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
29
30
31
32
int a, b, c;
Console.WriteLine("Enter three Numbers : ");
a = Convert.ToInt32(Console.ReadLine());
b = Convert.ToInt32(Console.ReadLine());
c = Convert.ToInt32(Console.ReadLine());
if (a > b && a > c)
{
Console.WriteLine(a + " is Maximum ");
}
if (b > a && b > c)
{
Console.WriteLine(b + " is Maximum ");
}
if (c > b && c > a)
{
Console.WriteLine(c + " is Maximum ");
}
if (a < b && a < c)
{
Console.WriteLine(a + " is Minimum ");
}
if (b < a && b < c)
{
Console.WriteLine(b + " is Minimum ");
}
if (c < b && c < a)
{
Console.WriteLine(c + " is Minimum ");
}
Console.ReadLine();