Untitled

mail@pastecode.io avatar
unknown
c_cpp
2 months ago
367 B
0
Indexable
Never
#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;
	}	
Leave a Comment