// A program to find largest number among 3.
#include#include
void main()
{
int a,b,c;
clrscr();
printf("Enter any three numbers:");
scanf("%d%d%d",&a,&b,&c);
if(a>b && a>c)
printf("Largest number:%d ",a);
else if(b>a && b>c)
printf("Largest number:%d ",b);
else if(c>a && c>b)
printf("Largest number:%d ",c);
getch();
}
Output:
// A Program to find odd or even.
// A Program to add two numbers.
// A program to display series from 1 to 50.
// A program to find the person is eligible for voting or not.
// A C program to perform arithmetic operations using switch case.
// A Program to add two numbers.
// A program to display series from 1 to 50.
// A program to find the person is eligible for voting or not.
// A C program to perform arithmetic operations using switch case.
Nhận xét
Đăng nhận xét