How To Find Greater Number Between two numbers In C


How To Find Greater Number Between two numbers

#include<stdio.h>

#include<conio.h>
void main()
{
int a,b;
clrscr();
printf("enter two no");
scanf("%d%d",&a,&b);
if(a>b)
{
printf(" a is greater");
}
else
{
printf("b is greater");
}
getch();
}

No comments:

Post a Comment