Saturday 10 December 2011

Write a program to input three values and find out the Biggest number in c

#include"stdio.h"
#include"conio.h"
main()
{
int x,y,z,a,b;
clrscr();
printf("Enter Three Numbers:\n");
scanf("%d%d%d",&x,&y,&z);
a=x>y?x:y;
b=a>z?a:z;
printf("\n The Biggest Number is:%d",b);
getch();
}


OUTPUT
Enter Three Numbers:
582
256
566
The Biggest Number is:582

No comments:

Post a Comment