Advertisement
TwITe

Untitled

Aug 5th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.19 KB | None | 0 0
  1. //&& для целых чисел
  2. int log_and(int a, int b) {
  3.     if (a > 0) {
  4.         a = 1;
  5.     }
  6.     if (b > 0) {
  7.         b = 1;
  8.     }
  9.     if (a == 1) {
  10.         if (b == 1) {
  11.             return true;
  12.         }
  13.     }
  14.     return false;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement