C programming examples with output
Find the biggest number out of three numbers
Program:
#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 big number: %d",a);
else if(b>c)
printf("The big number: %d",b);
else
printf("The big number: %d,c);
getch();
}
Output
Enter any three numbers :1
2
3
The big number :3
Check others programming by click here:
0 komentar:
Post a Comment