Thursday, August 27, 2009

Can You Find The Larger Of Two Numbers,and Report If The Two Numbers Are Equal In A Program?

Can You Find The Larger Of Two Numbers,and Report If The Two Numbers Are Equal In A Program?

#include
#include
void main()
{
int a,b;
clrscr();
printf("Enter the two numbers:");
scanf("%d,%d",&a,&b);
if(a>b) printf("%d is larger",a);
elseif(aelse printf("Both the numbers are equal");
getch();
}