//greatest number among three numbers
#include<stdio.h>
void main()
{
int a,b,c, greatest;
printf(“enter three numbers:”);
scanf(“%d%d%d”,&a,&b,&c);
if(a>b && a>c)
greatest=a; //Assigning the greatest value in variable greatest.
else if(b>a && b>c)
greatest=b;
else
greatest=c;
printf(“the greatest number is %d”,greatest);
}
OUTPUT

