Solutions is here 👇👇
#include<stdio.h>
#include<conio.h>
void main()
{clrscr();
int a,b,c;
printf("enter a number a");
scanf("%d",&a);
printf("enter a number for b");
scanf("%d",&b);
printf("enter a number for c");
scanf("%d",&c);
if(a>b)
{if(a<c)
{
printf(" a is middle ");
}
else
{if(b>c)
{
printf(" b is middle ");
}
else
{
printf(" c is middle ");
}
}
}
else
{
if(b<c)
{
printf(" b is middle ");
}
else
{
if(a>c)
{
printf(" a is middle ");
}
else
{
printf(" c is middle ");
}
}
}
getch();
}
#include<conio.h>
void main()
{clrscr();
int a,b,c;
printf("enter a number a");
scanf("%d",&a);
printf("enter a number for b");
scanf("%d",&b);
printf("enter a number for c");
scanf("%d",&c);
if(a>b)
{if(a<c)
{
printf(" a is middle ");
}
else
{if(b>c)
{
printf(" b is middle ");
}
else
{
printf(" c is middle ");
}
}
}
else
{
if(b<c)
{
printf(" b is middle ");
}
else
{
if(a>c)
{
printf(" a is middle ");
}
else
{
printf(" c is middle ");
}
}
}
getch();
}