最好吧你的样例贴出来,参考如下
#include <iostream>
using namespace std;
int main()
{
int i,n,t;
cin >>n;
t = n;
cout << "***************"<<endl;
for(i=0;i<10;i++)
{
n++;
if(i<9)
cout << n << " ";
else
cout << n << endl;
}
for(i=0;i<10;i++)
{
t+=2;
if(i<9)
cout << t << " ";
else
cout << t << endl;
}
cout << "***************"<<endl;
return 0;
}