OK so i am a university student just beggining in C, and I have this asignment which i have been struggling with, where we must take an input composing of two integers and an operator and create a 7 line output that looks something like this:
What we must do is use the first input integer to shift the first three lines and use the second integer to shift the arow at the bottom. The operator will somehow determine the shift ratio, but i can figure that out laterCode:+-------------------+ |0 1 2 3 4 5 6 7 8 9| +-----+-------------+-----+ (sorry about the formatting) |0 1 2 3 4 5 6 7 8 9| +-------------------+ ^
What i am really stuggling with is how can I use the input value for the integers to crate a number of spaces related to the value of that integer (ie if it is 3, print 6 spaces before each of the first 3 lines, if it is 4, print 4...etc (this only has to work for int 1-9)) and also how to cause this shift to effect the first three lines and not the next four
Any input would be greatly appreciated
Thankyou