Monday, June 13, 2011

Greatest Number


#include<stdio.h>
#include<conio.h>
void main()
{float a,b;
clrscr();
printf("enter two nos to find the greatest");
scanf(" %f %f",&a,&b);
if(a>b)
printf("\n%f is greater",a);
else if(b>a)
printf("\n%f is greater",b);
else
printf("both are equal");
getch();
}

No comments:

Post a Comment