//this is a program to find the largrest among three numbers
#include<stdio.h>
#include<conio.h>
void main()
{
int num1,num2,num3;
printf("\n\nEnter any 3 numbers: ");
scanf("%d%d%d",&num1,&num2,&num3);
if(num1>num2)
{
if(num1>num3)
printf("\n\n%d is largest number ",num1);
else
printf("\n\n%d is larget number ",num3);
}
else
{
if(num2>num3)
printf("\n\n%d is largest number ",num2);
else
printf("\n\n%d is largest number ",num3);
}
getch();
}
#include<stdio.h>
#include<conio.h>
void main()
{
int num1,num2,num3;
printf("\n\nEnter any 3 numbers: ");
scanf("%d%d%d",&num1,&num2,&num3);
if(num1>num2)
{
if(num1>num3)
printf("\n\n%d is largest number ",num1);
else
printf("\n\n%d is larget number ",num3);
}
else
{
if(num2>num3)
printf("\n\n%d is largest number ",num2);
else
printf("\n\n%d is largest number ",num3);
}
getch();
}