You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#include<stdio.h>voidmain{
inta,b,c; // Declaring three variables for storing the numbersprintf("Enter three numbers:");
scanf("%d%d%d", &a, &b, &c);//Reads three numbers// For comparing the numbers, we are using Logical AND (&&) operatorif( (a>b) && (a>c) )
{
printf("%d is the greatest number.",a);
}
elseif( (b>a) && (b>c) ){
printf("%d is the greatest number.",b);
}
else{
printf("%d is the greatest number.",c);
}
}