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