C PROGRAM |
C program to find the biggest of three numbers
#include <stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
printf("enter the numbers \n");
scanf("%d%d%d",&a,&b,&c);
if(a>b)
{
if(a>c)
{
printf("the biggest number is a");
}
else
{
printf("the biggest number is c");
}
}
if(b>c)
{
printf("the biggest number is b");
}
else
{
printf("the biggest number is c");
}
getch();
}
OUTPUT :
enter the numbers
30
74
80
the biggest number is c
[Process completed (code 10) - press Enter]
No comments:
Post a Comment