Monday, 31 December 2018

Filled Under:

Find biggest number out of three numbers [c programming examples with output]

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

0 komentar:

Post a Comment