12345678910
#include <array> #include <numeric> int main() { int constexpr upper_bound = 400 + 1; int constexpr lower_bound = 200; std::array<int, upper_bound - lower_bound> xs; std::iota(std::begin(xs), std::end(xs), lower_bound) }
12345678910111213141516171819202122
#include <iostream> using namespace std; const int how_many = 400 - 200 + 1; int main() { int store[how_many]; for(int i = 0; i < how_many; i++) { store[i] = 200 + i; } for(int i = 0; i < how_many; i++) { cout << i << '\t' << store[i] << endl; } return 0; }