Wednesday 30 January 2013

WAP TO FIND OUT BIGGER NUMBER (IF-ELSE)


void main ()
{
int a,b;
clrscr ();
printf ("Enter the value of A: ");
scanf("%d",&a);
printf ("Enter the value of B: ");
scanf ("%d",&b);
if (a>b)
{
printf ("A is Greater");
}
else
{
printf("B is Greater");
}
getch ();
}

No comments:

Post a Comment

Comment