C Program to Find Largest Number Among Three Numbers

C Program to Find Largest Number Among Three Numbers


#include<stdio.h>
#include<conio.h>
void main()
{
    float a,b,c;
    printf("Enter the numbers a,b,c\n");
    scanf("%f%f%f",&a,&b,&c);
    if(a>b&&a>c)
        printf("The largest number is %f",a);
    else if(c>a&&c>b)
        printf("The largest number is %f",c);
    else
        printf("The largest number is %f",b);
    getch();
}