Answer to Question #219473 in C++ for Nkrumah

Question #219473

Write a c++ program to generate a dynamic multiplication table allow the user to specify the following;

-The type of multiplication table 

-The starting point 

-The ending point

// 2 * 2 = 1

// 2 * 10 = 10




1
Expert's answer
2021-07-21T16:35:36-0400
#include <iostream>

int main() 
{
  int start, end;
 
  std::cout << "Start:";
  std::cin >> start;
  
  std::cout << "End:";
  std::cin >> end;

  for (int i=start; i<=end; i++) {
    for (int j=start; j<=end; 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
New on Blog
APPROVED BY CLIENTS