Created
July 18, 2019 18:19
-
-
Save sachinsaxena25/d37fdc82a435791cade40f028f489632 to your computer and use it in GitHub Desktop.
This file contains 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
#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