Write a program that will ask the user to enter a number n and display all the numbers from 1 to n on a single line.
#include <iostream>
using namespace std;
int main (){
cout<<"Please, Enter n\n";
int n; cin>>n;
for (int i = 0 ; i < n ; i++)
& cout<< i+1 <<' ';
system("pause");
return 0;
}