Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- bool flaga = (10 % 2 == 0);
- if(flaga) // wpisując przypadek w instrukcję warunkową, możemy używać zmiennych typu bool
- cout << "10 jest podzielne przez 2\n";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement