Wap to check the largest number among three numbers
Answers
Answered by
1
Answer:
c programming
#include<stdio.h>
#include <conio.h. >
main ( )
int a,b,c;
clrscr ( );
printf (" Enter value of a,b,c");
scanf ("%d%d%d",&a,&b,&c);
if (a>b&&a>c)
{
printf ("a is greatest");
}
else if ( b>a&&b>c)
{
printf ("b is greatest ");
}
else if (c>a&&c>b)
{
printf ("c is greatest);
}
getch ( );
}
Similar questions