Larger Value In C

#include<stdio.h>
#include<conio.h>
void main()
{
int a,b;
clrscr();
printf("enter the value of a,b\n");
scanf("%d%d",&a,&b);
if(a>b)
{
printf("a is greater");
}
else
{
printf("b is greater");
}
getch();
}
Output:-
enter the value of a,b
7
3
A is greater




Previous                                   Next

No comments:

Post a Comment