Write a program which produces a simple multiplication table of the following format for integer in the range 1to 9:
1*1=1
1*2=2
•••
9*9=81
using namespace std;
#include <stdio.h>
//Multiplication Table
main(void)
{
int m,n;
cout<<"\nMultiplication Table"<<"\n\t";
for(n=1;n<11;n++)
{
for(m=1;m<11;m++) cout<<setw(5)<<m*n;
cout<<endl<<"\t";
}
}
Comments
Leave a comment