W.A.P For Finding Gratest Between Three Number

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

W.A.

P FOR FINDING GRATEST BETWEEN


THREE NUMBER
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
printf("Enter the values of a&b&c");
scanf("%d%d%d",&a,&b,&c);
if(a>b&&a>c)
{
printf("a is greater than both b&c");
}
if(b>a&&b>c)
{
printf("b is greater than both a&c");
}
else
{
printf("c is greater than both b&a");
}
getch();
}

You might also like