Answer to Question #15525 in C++ for joya chand
Question #15525
write a program to read positive integers less than 20 and display its multiplication table.
Expert's answer
#include "iostream"
#include "math.h"
using namespace std;
int n;
int main()
{
cin>>n;
cout<<endl<<"[1,2,3...n]*n"<<endl<<endl;
int tabl[n];
int mnozh[n];
if(n<=20){
for(int i=1; i<=n; i++)
{ tabl[n]=i;
mnozh[n]=n*tabl[n];
cout<<mnozh[n]<<endl;
}
}
system("PAUSE");
return 0;
}
Need a fast expert's response?
Submit orderand get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment