Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
380 B
0
Indexable
Never
#include <iostream>

using namespace std;

int main() {
	//y = x ^ 2
	int y;
	double n;
	int left_bound, right_bound, step;
	cin >> left_bound >> right_bound >> step;
	int array[100][2] = {};
	
	for (left_bound; left_bound <= right_bound; left_bound += step) {
		y = left_bound * left_bound;
		array[left_bound][0] = left_bound;
		array[left_bound][1] = y;
	}
}
Leave a Comment