Sunday, February 19, 2012

C Program to find biggest of three numbers - c programs


C Program to find biggest of three numbers - c programs


//C Program to find biggest of three numbers

#include <stdio.h>
#include <conio.h>
main()
{
int a,b,c;
clrscr();
printf("enter any three numbers");
scanf(%d%d%d",&a, &b, &c);
if ((a>b) && (a>c))
printf("the biggest number is %d", a)
else if b>c
printf("the biggest number is %d", b)
else
printf("the biggest number is %d", c)
}

No comments:

Post a Comment