C Program To Find Greatest Between Three Numbers

      No Comments on C Program To Find Greatest Between Three Numbers
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int a,b,c;
printf("Enter Value of a:- ");
scanf("%d",&a);
printf("Enter Value of b:- ");
scanf("%d",&b);
printf("Enter Value of c:- ");
scanf("%d",&c);
if(a>b)
 {
 if(a>c)
  {
  printf("a is greater");
  }
  else
   {
   printf("c is greater");
   }
}
else
 {
 if(b>c)
    {
    printf("b is greater");
    }
    else
    {
    printf("c is greater");
    }
 }
getch();
}
OUTPUT:-

scanfcode

Leave a Reply

Your email address will not be published. Required fields are marked *