#include<stdio.h>//header file
#include<conio.h>//header file
void main() //starting of the main() function
{
int a,b,c; //declaration of the variables
clrscr();
printf("program that gives maximum of three nos. using if-else");
printf("\n\n\n\t\t------------INPUT-------------");
printf("\n\nenter any three nos.");//taking input from the user
scanf("%d%d%d",&a,&b,&c);
printf("\n\n\n\t\t------------OUTPUT------------");
if(a>b)
{
if(a>c)
{
printf("\n\nthe max. no. is=%d",a);//printing output
}
else
{
printf("\n\nthe max. no. is=%d",c);//printing output
}
}
else
{
if(b>c)
{
printf("\n\nthe max. no. is=%d",b);//printing output
}
else
{
printf("\n\nthe max. no. is=%d",c);//printing output
}
}
getch();
}