#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
printf("Enter the values of a: ");
scanf("%d",&a);
printf("Enter the values of b: ");
scanf("%d",&b);
printf("Enter the values of c: ");
scanf("%d",&c);
if(a>b)
{
if(a>c)
{
printf(" a is largest number.");
}
else
{
printf(" c is largest number.");
}
}
else
{
if(b>c)
{
printf(" b is largest number.");
}
else
{
printf(" c is largest number.");
}
}
getch();
}
OUTPUT:
largest.c |
DOWNLOAD | DOWNLOAD |
---|---|
RELATED PROGRAMS
c. Writea program to convert years intomonths and days.
d. Write a program to solve Quadratic Equation.
d. Write a program to solve Quadratic Equation.
No comments:
Post a Comment