Saturday, 26 September 2015

Program to find biggest number between three input numbers

/* Program to find biggest number between three input numbers*/
#include<conio.h>
#include<stdio.h>
void main()
{
int a,b,c,big;
clrscr();
printf("Enter any three numbers");
scanf("%d%d%d",&a,&b,&c);
if(a>b && a>c)
big=a;
else
       {
              if(a<b && b>c)
                     big=b;
              else
                     big=c;
        }
printf("Biggest no=%d",big);
getch();
}



No comments:

Post a Comment