Program to find Greatest among Three Number

#include<conio.h>

#include<stdio.h>

void main()

{

int a,b,c;

clrscr();

printf("Enter the Numbers A,BandC");

scanf("%d%d%d",&a,&b,&c);

if(a>b)

{

printf("%d",a);

}

else

{

printf("%d",c);

}

}

else

if(b>c)

{

printf("%d",b);

}

else

{

printf("%d",c);

getch();

}

Output

Enter the numbers A,B and C=25,47,5

47

Comments

Popular posts from this blog

Gove confirms mandatory housebuilding targets for councils will be abolished in face of Tory rebellion – UK politics live

Kotak Mahindra Bank Recruitment 2022 Released for Graduate Candidates And Apply Online