Created
July 17, 2017 13:34
-
-
Save ThePratikSah/384b2434994a07537bfc2b87ecba5724 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Author: Pratik Sah | |
Date: 01-04-17 | |
*/ | |
main(){ | |
int a,b,c; | |
printf("Enter any three numbers:\n"); | |
scanf("%d%d%d", &a,&b,&c); | |
if (a>b && a>c) | |
printf("%d is greatest.", a); | |
else | |
if (b>c && b>a) | |
printf("%d is greatest.", b); | |
else | |
printf("%d is greatest.", c); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment