Advertisement
rodMorMTL

Sample module with boolean operators

Oct 21st, 2021
1,663
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.22 KB | None | 0 0
  1. void boolean_operators (int i, int j)
  2. {
  3.     /*Sample module with boolean operators */
  4.     if (i>0 && j>0){
  5.         while (i>j) {
  6.             if (i%2 && j%2)
  7.                 printf ("%d \n",i);
  8.             else
  9.                 printf ("%d \n",j);
  10.             i--;
  11.         }
  12.     }
  13. }
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement