Jan 2, 2017 at 7:20am Jan 2, 2017 at 7:20am UTC
5 10 15 20 25 30 35 40 45 50
10 20 30 40 50 60 70 80 90 100
15 30 45 60 75 90 105 120 135 150
20 40 60 80 100 120 140 160 180 200
would appreciate with anyone could tell me how to do and guide me? Thank you very much. :)
Last edited on Jan 2, 2017 at 7:49am Jan 2, 2017 at 7:49am UTC
Jan 2, 2017 at 7:21am Jan 2, 2017 at 7:21am UTC
Apparently.
Do you want to tell more?
Jan 2, 2017 at 7:54am Jan 2, 2017 at 7:54am UTC
The question is, what does it mean? What is the problem to be solved, other than "output some text".
Jan 2, 2017 at 7:56am Jan 2, 2017 at 7:56am UTC
@keskiverto @chervil thanks for the reply.
I wanted to use nested for loop to compile the results above.
but the sequence I do not know how to do it. Since it increase each row and column differently.
Jan 2, 2017 at 8:10am Jan 2, 2017 at 8:10am UTC
Use an outer loop to control the rows,
Use an inner loop to control the columns.
Each row will have a simple sequence, 5, 10, 15, 20.
Try to write a loop to output that first. Then add an inner loop to increase each column by that amount.
Jan 2, 2017 at 8:16am Jan 2, 2017 at 8:16am UTC
@integralfx @chervil Thanks for the reply. :)
is two for loop enough or it is more than 2 loops ?
Jan 2, 2017 at 9:07am Jan 2, 2017 at 9:07am UTC
Did you try your program DesmondLee? What output did you get.
Hint: maybe you could put a endl in a stategic spot so you don't get everything displayed on a single line.
Also, you #include'd <iomanip> which is a good idea but didn't use it :(
Last edited on Jan 2, 2017 at 9:10am Jan 2, 2017 at 9:10am UTC
Jan 2, 2017 at 9:12am Jan 2, 2017 at 9:12am UTC
Yeah..I got the same results as above. hmm I just afraid that my code was not sufficient and not good enough. :)
Jan 2, 2017 at 9:22am Jan 2, 2017 at 9:22am UTC
The same results but not the same layout. Pretty close and just a small amount extra.
Jan 2, 2017 at 9:26am Jan 2, 2017 at 9:26am UTC
@kemort
can you show me the version of yours ?:)
Jan 2, 2017 at 9:33am Jan 2, 2017 at 9:33am UTC
@Thomas1965
Thanks for sharing.
may I know what is the line 10 is about ?
Jan 2, 2017 at 5:33pm Jan 2, 2017 at 5:33pm UTC
@Thomas1965 okay. Thanks for the reply once again.
Jan 3, 2017 at 7:47am Jan 3, 2017 at 7:47am UTC
@kemort thanks for the sharing of your version. It greatly help me :)