Largest of 3 number


/*Largest of 3 number */
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
printf("enter the 3 numbers\n");
scanf("%d %d %d",&a,&b,&c);
if(a>b && a>c)
printf("a is greater\n");
else
if(b>a && b>c)
printf("b is greater");
else
printf("c is greater");

getch();

}




out put
enter the 3 numbers
9
7
20
c is greater
Related Posts Plugin for WordPress, Blogger...