Skip to content

Commit 54f9bc0

Browse files
gretter new
Program to find the greatest of two number in c
1 parent 6be80a8 commit 54f9bc0

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

gretter new

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

0 commit comments

Comments
 (0)