Hello friends!!!!!

Pgr to find greatest of three numbers

C LANGUAGE

9/8/20241 min read

#include <stdio.h>

int main () {

int a,b,c;

printf("Enter three numbers : ");

scanf("%d%d%d", &a,&b,&c);

if(a>b && a>c) {

printf("%d is greater", a);

}

if(b>a && b>c) {

printf("%d is greater", b);

}

else{

printf("%d is greater", c);

}

return 0;

}

Output :

Enter three numbers : 27 26 57

57 is greater

=== Code Execution Successful ===