#include<iostream>
using namespace std;
#include<iomanip>
using std::setw;
int main()
{
int n[15];
for(int i=1;i<=10;i++)
{
n[i]=i+2;
}
cout<<"\t Table of two "<<endl;
for(int j=1;j<=10;j++)
{
cout<<setw(10)<<"2*"<<j<<"="<<setw(10)<<n[j]<<endl;
}
return 0;
}
No comments:
Post a Comment