Computer for SEE and NEB

It is a complete SEE and NEB solution for computer science. It includes Computer Fundamentals, Database (SQL), Programming in C QBASIC, CSS, JavaScript, and PHP for beginners.

Breaking

Post Top Ad

Your Ad Spot

Saturday, July 16, 2022

C Program To Find Middle Number Among Input Three Numbers

C Program To Find Middle Number Among Input Three Numbers

 

#include<stdio.h>

#include<conio.h>

main()

{

int a,b,c;

printf("Enter any three numbers=");

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

if((a>b&&a<c)||(a<b&&a>c))

printf("A is middle number and number is%d",a);

else if((b>a&&b<c)||(b<a &&b>c))

printf("B is middle number and number is%d",b);

else

printf("C is middle number and number is %d",c);

getch();

}

No comments:

Post a Comment

Post Top Ad

Your Ad Spot

Pages