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 three numbers: ");
- scanf("%d %d %d", &A, &B, &C);
- if (A >= B && A >= C)
- printf("%d is the largest number.", A);
- else if (B >= A && B >= C)
- printf("%d is the largest number.", B);
- else
- printf("%d is the largest number.", C);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement