Skip to content

Instantly share code, notes, and snippets.

@sachinsaxena25
Created July 18, 2019 18:19
Show Gist options
  • Save sachinsaxena25/d37fdc82a435791cade40f028f489632 to your computer and use it in GitHub Desktop.
Save sachinsaxena25/d37fdc82a435791cade40f028f489632 to your computer and use it in GitHub Desktop.
#include<stdio.h>
int main(void){
int a = 0;
int b = 0;
int c = 0;
printf("please enter the value of a:\n");
scanf("%d", &a);
printf("please enter the value of b:\n");
scanf("%d", &b);
printf("please enter the value of c:\n");
scanf("%d", &c);
if(a > b && a > c){
printf("a is a largest number = %d", a);
}
else if(b > a && b > c){
printf("b is a largest number = %d", b);
}
else{
printf("c is a largest number = %d", c);
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment