Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main(){
- int a,b,c;
- printf("Enter the numbers:");
- scanf("%d%d%d", &a, &b, &c);
- if (a>b&&a>c){
- printf("largest number:%d\n",a);
- }
- else if (b>c&&b>a){
- printf("largest number:%d\n",b);
- }
- else {
- printf("largest number:%d\n",c);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement