Skip to content

Displaying numbers using Multidimensional arrays

Mervha Nifflemhell

Asked Jun 22, 2008, 3:44 AM EDT1 answer
Share
LinkedInX
What codes are suitable to display an output wherein 2 inputs are required:

For example, the program ask for 2 inputs:

1st input: 2
2nd input: 5

The program will display an output like this:

1 2 3 4 5
2 4 6 8 10


Another example: 5 and 3

Output will be:

1 2 3
2 4 6
3 6 9
4 8 12
5 10 15





Sorry if i ask these questions. I'm still a newbie here. I know I'll use some looping methods with this kind of program but I'm still confused with the algorithm.


Thanks for helping me out.

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 1 short reply
    • Mike Gold
      0
      Is this a homework problem?
      0