Code:
#include <iostream>

using namespace std;

int main(){
    int i,number=11;
    while (number>=10){
        cout<<"enter a number <10:";
        cin>>number;
    }
    for (i=-number+1;i<=number-1;i++){
        cout<<(number-abs(i))<<" ";
    }
    return 0;
}