Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main(){
- setlocale (LC_ALL, "");
- int num1, num2;
- cout << "Podaj pierwszą liczbę: ";
- cin >> num1;
- cout << "Podaj drugą liczbę : ";
- cin >> num2;
- if (num1==2 && num2==2){
- cout << "Obie liczby są równe 2";
- }
- else if (num1==2 || num2==2){
- cout << "Pierwsza liczba lub druga jest równa 2";
- }
- else{
- cout << "Żadna liczba nie jest równa 2";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement