Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int x, y, z;
- cout << "Podaj liczbe x:";
- cin >> x;
- cout << "Podaj liczbe y:";
- cin >> y;
- cout << "Podaj liczbe z:";
- cin >> z;
- z=z*z;
- for(int i=x; i<=y; i++)
- {
- if (i%z!=0)
- {
- cout << i << ", ";
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement