Ads 468x60px

Labels

Jun 2, 2012

#2 - Greatest Of Two Numbers [C]

#include"stdio.h"
void main()
{
int a,b;
printf("Enter the first number \n";
scanf("%d",&a);
printf("Enter the second number \n");
scanf("%d",&b);
if(a>b)
{
printf("\n %d is greater",a);
}
else
{
printf("\n %d is greater",b);
}
getch();
}

No comments:

Post a Comment