Answer to Question #43982 in C++ for nistha

Question #43982
write a program to print all the multiplication tables from 11 to 20 up to first 10 multiples.
1
Expert's answer
2014-07-07T15:44:52-0400
#include <iostream>
int main() {
std::cout << " ";
for ( int i = 11; i <= 20; i++ ) {
std::cout << " " << i << " ";
}
std::cout << std::endl;
for ( int i = 11; i <=20; i++ ) {
std::cout << i << " ";
for ( int j = 11; j <=20; j++ ) {
std::cout << i * j << " ";
}
std::cout << std::endl;
}
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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS