Advertisement
dllbridge

Untitled

Sep 8th, 2019
422
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.26 KB | None | 0 0
  1. #include <iostream>
  2. //using namespace std;
  3. int arr[10] = {22, 3, 11, 7};
  4.  int a = arr[1]
  5.  int b = arr[2]
  6.  int c = arr[3]
  7.  int d = arr[4]
  8.  
  9. int a, b, c, d ;
  10.   cin >> a >> b >> c >> d;
  11.   for (int i = a ; i <= b ; i++)
  12.     if (i % d == c)
  13.       cout << i << ' '
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement