In: Computer Science
Code:
#include <iostream>
#include <iomanip>
using namespace std;
int main () {
int i,j;
for(i=1;i<=10;i++){
for(j=1;j<=8;j++)
cout<<setw(2)<<j<<"x"<<setw(2)<<i<<"
= "<<setw(2)<<i*j<<" ";
cout<<"\n";
}
return 0;
}
Hope this helps.