Untitled
unknown
c_cpp
2 years ago
367 B
4
Indexable
#include <iostream>
using namespace std;
int main() {
setlocale(LC_ALL, "Russian");
int k, b, mas[101];
cout << "Введите значение K: ";
cin >> k;
cout << "Введите значение b: ";
cin >> b;
for (int i = 0; i < 101; i++) {
mas[i] = (k * i) + b;
}
for (int i = 0; i < 101; i++) {
cout << mas[i] << endl;
}
Editor is loading...
Leave a Comment