Skip to content

Commit a06a531

Browse files
authored
Greater bhai
Programe to find greatest of two number
1 parent c5c05c2 commit a06a531

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

Greaterbhai

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
include<stdio.h>
2+
#include<conio.h>
3+
void main()
4+
{
5+
6+
int n1,n2,sum;
7+
clrscr();
8+
9+
printf("\nEnter 1st number : ");
10+
scanf("%d",&n1);
11+
12+
printf("\nEnter 2nd number : ");
13+
scanf("%d",&n2);
14+
15+
if(n1 > n2)
16+
printf("\n1st number is greatest.");
17+
else
18+
printf("\n2nd number is greatest.");
19+
20+
getch();
21+
}
22+
23+
Output :
24+
25+
Enter 1st number : 115
26+
Enter 2nd number : 228
27+
2nd number is greatest.

0 commit comments

Comments
 (0)