Răspuns :
#include <iostream>
using namespace std;
int n;
int main()
{
cin >> n;
for(;n;n--)
cout << 2*n-1 << " ";
return 0;
}
using namespace std;
int n;
int main()
{
cin >> n;
for(;n;n--)
cout << 2*n-1 << " ";
return 0;
}
Hey...
#include <iostream>
#include<fstream>
using namespace std;
int main()
{
int n,i,k=0,v[100];
cout<<"nr=";cin>>n;
if(n>=1 && n<=100)
{ for(i=0;i<n;i++)
v[i]=2*i+1;
}
for(i=n-1;i>=0;i--)
cout<<v[i]<<" ";
}
#include <iostream>
#include<fstream>
using namespace std;
int main()
{
int n,i,k=0,v[100];
cout<<"nr=";cin>>n;
if(n>=1 && n<=100)
{ for(i=0;i<n;i++)
v[i]=2*i+1;
}
for(i=n-1;i>=0;i--)
cout<<v[i]<<" ";
}