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