Monday, 23 February 2015

ElseIfLadder Program in C


#include<stdio.h>
#include<conio.h>
main()
{
int a,b,c;
clrscr();
printf("\n Enter Number1 :");
scanf("%d",&a);
printf("\n Enter Number2 :");
scanf("%d",&b);
printf("\n Enter Number3 :");
scanf("%d",&c);

if(a>b&&a>c)
{
printf("\n First Number is Big");
}
else if(b>a && b>c)
{
printf("\n Second Number is Big");
}
else
{
printf("\n Third Number is Big");
}
getch();
}

No comments:

Post a Comment