Advertisement
MeehoweCK

Untitled

Mar 19th, 2021
679
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.26 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     bool flaga = (10 % 2 == 0);
  8.     if(flaga)       // wpisując przypadek w instrukcję warunkową, możemy używać zmiennych typu bool
  9.         cout << "10 jest podzielne przez 2\n";
  10.     return 0;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement