Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- /* operatory logiczne:
- && - AND
- || - OR
- */
- if(5 > 3 || 10 < 12)
- cout << "Przynajmniej jeden z warunkow powyzej jest spelniony" << endl;
- if(6 > 2 && 10 > 5)
- cout << "Oba powyzsze warunki sa spelnione" << endl;
- int liczba = 187;
- if(liczba % 17 == 0)
- cout << "Liczba " << liczba << " jest podzielna przez 17." << endl;
- else
- cout << "Liczba " << liczba << " nie jest podzielna przez 17." << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement