Skip to content

Instantly share code, notes, and snippets.

@ThePratikSah
Created July 17, 2017 13:34
Show Gist options
  • Save ThePratikSah/384b2434994a07537bfc2b87ecba5724 to your computer and use it in GitHub Desktop.
Save ThePratikSah/384b2434994a07537bfc2b87ecba5724 to your computer and use it in GitHub Desktop.
/*
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