forked from seeditsolution/cprogram
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGreaterbhai
More file actions
27 lines (20 loc) · 655 Bytes
/
Copy pathGreaterbhai
File metadata and controls
27 lines (20 loc) · 655 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
include<stdio.h>
#include<conio.h>
void main()
{
int n1,n2,sum;
clrscr();
printf("\nEnter 1st number : ");
scanf("%d",&n1);
printf("\nEnter 2nd number : ");
scanf("%d",&n2);
if(n1 > n2)
printf("\n1st number is greatest.");
else
printf("\n2nd number is greatest.");
getch();
}
Output :
Enter 1st number : 115
Enter 2nd number : 228
2nd number is greatest.