Advertisement
AbraaoAllysson

Cout

May 16th, 2016
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.46 KB | None | 0 0
  1. int Cout(int a, int b, int addsub, int resultado)
  2. {  
  3.      if(!addsub)
  4.      {
  5.         if(((a <= 0x0FFFFFFF) && (b <= 0x0FFFFFFF) && (resultado > 0x0FFFFFFF)) || ((a >= 0x0FFFFFFF) && (b >= 0x0FFFFFFF) && (resultado <= 0x0FFFFFFF)))
  6.             return 1;
  7.         else
  8.             return 0;
  9.     }
  10.     else
  11.     {
  12.         if(((a <= 0x0FFFFFFF) && (b >= 0x0FFFFFFF) && (resultado > 0x0FFFFFFF)) || ((a >= 0x0FFFFFFF) && (b <= 0x0FFFFFFF) && (resultado <= 0x0FFFFFFF)))
  13.             return 1;
  14.         else
  15.             return 0;
  16.     }
  17.        
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement