Skip to content

Commit ed8324c

Browse files
authoredOct 1, 2020
greternumbers
progrmme to find three greter numbers
1 parent c5c05c2 commit ed8324c

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
 

‎threegreternumber

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
program to find the greatest of three numbers
2+
3+
#include<stdio.h>
4+
int main()
5+
{
6+
//Fill the code
7+
int num1, num2, num3;
8+
scanf(“%d %d %d”,&num1,&num2,&num3);
9+
if(num1 > num2 && num1 > num3)
10+
{
11+
printf(“%d is greater”,num1);
12+
}
13+
else if(num2 > num1 && num2 > num3)
14+
{
15+
printf(“%d is greater”,num2);
16+
}
17+
else
18+
{
19+
printf(“%d is greater”,num3);
20+
}
21+
return 0;
22+
}

0 commit comments

Comments
 (0)