


Programs in C language
10. Program to find largest of given numbers.
#include<stdio.h>
void main()
{
int a, b, c;
clrscr();
printf("Enter any three numbers:");
scanf("%d%d%d",&a,&b,&c);
if(a>b & b>c) printf("%d is the largest number",a);
else
{
if(b>c) printf("%d is the largest number",b;
else printf(%d is the largest number",c);
}
getch();
}
Input :75 8 94
Output :
94 is the largest number