Jan 26, 2013

Selecting the largest 3 Value program

Selecting the largest 3 Value program

#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
float a,b,c,MAX;
printf("Input the value of a,b,c=");
scanf("%f%f%f",&a,&b,&c);
MAX=a;
if(a<b)
MAX=b;
if(b<c);
MAX=c;
printf("The Largest Number is=%f",MAX);
getch();
}

No comments:

Post a Comment

Thank you for visit this site. You will get many programming news from here and learn programming very easily.

Popular Posts