C PROGRAM TO FIND BIGGEST OF GIVEN THREE NUMBERS
#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
int a,b,c,s;
clrscr();
printf("enter the values a,b,c");
scanf("%d%d%d",&a,&b,&c);
s=a>b?(a>c?a:c):(b>c?b:c);
printf("the largest three numbers is %d%d%d %d",a,b,c,s);
getch();
}
No comments:
Post a Comment