Example If else program in c language
Example If else program in c language
Program:-
#include<stdio.h>
#include<conio.h>
main()
{
int a=53,b=234,c=456;
clrscr();
if (a>b)
{
if (a>c)
{
printf("%d ",a);
}
else
{
printf("%d",c);
}
}
else
{
if(b>c)
{
printf("%d",b);
}
else
printf("%d",c);
}
getch();
}
Output:-
c is greater than a and b
No comments
Post a Comment