source file name: Min3floats.C
#include <stdio.h>
int main()
{
float a,b,c;
//clrscr();
printf("\n enter 3 float numbers"); ;
scanf("%f%f%f",&a,&b,&c);
if(a<b && a<c)
printf(" \n A is Minimum number");
else
{
if(b<c)
printf(" \n B is Minimum number");
else
printf(" \n C is Minimum number");
}
//getch();
return 0;
}
output:
0 Comments
Post a Comment