Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int A, B, result, maximo;
- char carac;
- scanf("%d", &maximo);
- scanf("%d %c %d", &A, &carac, &B);
- if(carac == '+') result=A+B;
- else result=A*B;
- if(result>maximo) printf("OVERFLOW");
- else printf("OK");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement