Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int x, y;
- int main()
- {
- cout << "Wprowadz pierwsza liczbe: " << endl;
- cin >> x;
- cout << "Wprowadz druga liczbe: " << endl;
- cin >> y;
- if (x == 0) cout << "Nie mozna dzielic przez 0" << endl;
- else if (y%x == 0) cout << "Druga liczba jest podzielna przez ta pierwsza" << endl;
- else cout << "Druga liczba nie jest podzielna przez ta pierwsza" << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment