Задание 36 

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> #include <cmath> #include <cstdlib> using namespace std; int main() { setlocale(LC_ALL, "Rus"); int l, m, i, t; const int n = 10; int b[15], a[n]; for (i = 0; i < n; i++) { a[i] = rand() % 10; } cout << " Введите делитель: ", cin >> m, cout<< endl; cout << " Введите остаток: ", cin >> l, cout << endl; if (0 <= l && l <= m) { for (i = 0; i < n; i++) { if (a[i] % m == l) { cout << a[i] << " " << endl; } } } return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines