C/C++
#include <iostream>
using namespace std;
int main(){
int n;
cout << "Введите N: ";
cin >> n;
int v = 1;
for (int i=0; i < n; i++){
cout << v << " ";
v += 2;
}
return 0;
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
C/C++
#include <iostream>
using namespace std;
int main(){
int n;
cout << "Введите N: ";
cin >> n;
int v = 1;
for (int i=0; i < n; i++){
cout << v << " ";
v += 2;
}
return 0;
}