Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- //using namespace std;
- int arr[10] = {22, 3, 11, 7};
- int a = arr[1]
- int b = arr[2]
- int c = arr[3]
- int d = arr[4]
- int a, b, c, d ;
- cin >> a >> b >> c >> d;
- for (int i = a ; i <= b ; i++)
- if (i % d == c)
- cout << i << ' '
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement