Answer to Question #15525 in C++ for joya chand
write a program to read positive integers less than 20 and display its multiplication table.
1
2012-09-28T08:03:48-0400
#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 order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Learn more about our help with Assignments:
C++
Comments
Leave a comment