Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
- 1
The main program loop is so while loop which terminates, when Q-key is pressed .Inside the main program loop the user's input is evaluated using if-else structures to determine the user's selection .The up ,left ,down,right arrow keys are used . the arrow keys are used to select the position of the block character\s output, The next key (N) and P-key are use to select the next and previous block to control .The X and Y key are used to allow the user to numerically enter the x and Y position for the block , the C key Alllow the user to see the color of the scheme for the output box . The color is controlled by selecting the desired text background color . The color is controlled by the left ,right arrow . The colour is applied by pressing enter and the Botton screen, output box is now displayed in the new selected color . Please help
10th Jun 2021, 4:41 PM
Peggy Phindile
Peggy Phindile - avatar