Author | Message |
---|---|
303627966
Posts: 11
|
Posted 23:24 May 17, 2016 |
can someone please help me figure out how to modify my code so that the table prints out the solutions next to each other... i have attached a screen shot of what my output looks like as of now |
aalva190
Posts: 64
|
Posted 23:26 May 17, 2016 |
You need to do it all in one loop. example for( int a = 0, int b=0; condition one, condition two; a++, b++) this is just an example tho. Last edited by aalva190 at
23:28 May 17, 2016.
|
aalva190
Posts: 64
|
Posted 23:27 May 17, 2016 |
i am assuming u did it in 2 loops, rather then one so try to do it in one loop. For more info look at the lectures loop sectiom he has a example there |
303627966
Posts: 11
|
Posted 23:27 May 17, 2016 |
oooooh okay i think i get what you're saying... thank you |
64bitworldftw
Posts: 11
|
Posted 23:27 May 17, 2016 |
You may want to integrate your loop, like putting two loops together as one. |
303627966
Posts: 11
|
Posted 23:28 May 17, 2016 |
yeah i used 2 but it makes sense to use one for both... thanks again |
aalva190
Posts: 64
|
Posted 23:29 May 17, 2016 |
Ur very welcome |
303627966
Posts: 11
|
Posted 23:36 May 17, 2016 |
yes!! it worked :) |
aalva190
Posts: 64
|
Posted 23:37 May 17, 2016 |
Awesome |