Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int Cout(int a, int b, int addsub, int resultado)
- {
- if(!addsub)
- {
- if(((a <= 0x0FFFFFFF) && (b <= 0x0FFFFFFF) && (resultado > 0x0FFFFFFF)) || ((a >= 0x0FFFFFFF) && (b >= 0x0FFFFFFF) && (resultado <= 0x0FFFFFFF)))
- return 1;
- else
- return 0;
- }
- else
- {
- if(((a <= 0x0FFFFFFF) && (b >= 0x0FFFFFFF) && (resultado > 0x0FFFFFFF)) || ((a >= 0x0FFFFFFF) && (b <= 0x0FFFFFFF) && (resultado <= 0x0FFFFFFF)))
- return 1;
- else
- return 0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement