Tuesday, 27 September 2011

greater than and smaller than


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

No comments:

Post a Comment