Ask coding questions

← Back to all posts
How to
jnrob900

after compiling ./dpsm 5 10 I try to get an output with 5 columns and 10 rows but I only get 1 row 1 column.

Voters
jnrob900
Comments
hotnewtop
DynamicSquid

You need a nested for loop to display 10 rows in display_states.

DynamicSquid

You can also use a .replit file like the one I have here. Basically the .replit file runs a custom command every time your press the Run button