Untitled
unknown
c_cpp
a year ago
367 B
2
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