-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSmall and Large.c
49 lines (49 loc) · 931 Bytes
/
Small and Large.c
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
////C program to find Largest and smallest among three numbers Using if else
//
//#include<stdio.h>
//int main()
//{
// // Variable declaration
// int a,b,c, larg, small;
//
// printf("Enter Three Number\n");
// scanf("%d %d %d",&a,&b,&c);
//
// // larg among a, b and c
// if(a>b)
// {
// if(a>c)
// larg = a;
// else
// larg = c;
// }
// else
// {
// if(b>c)
// larg = b;
// else
// larg = c;
// }
// // Small among a, b and c
// if(a<b)
// {
// if(a<c)
// small = a;
// else
// small = c;
// }
// else
// {
// if(b<c)
// small = b;
// else
// small = c;
// }
////Display Largest Number
// printf("%d is largest number\n",larg);
//
////Display smallest number
// printf("%d is Smallest Number ",small);
//
// return 0;
//}