So, Let's get to the point. I need some hint for the algorithm for my project.
The program should has the output depending the number I'll input. (The number should be from 1-9)
This is the program's output should be:
Input number: 4 Output: # # # 1 # # # # # # # # 2 # # # # # # # # 3 # # # # # 1 2 3 4 5 6 7 8 9 # # # 5 # # # # # # # # 6 # # # # # # # # 7 # # # # # # # # 8 # # # # # # # # 9 # # # # # (Example 2): Input numbers: 8 Output: # # # # # # # 1 # # # # # # # # 2 # # # # # # # # 3 # # # # # # # # 4 # # # # # # # # 5 # # # # # # # # 6 # # # # # # # # 7 # 1 2 3 4 5 6 7 8 9 # # # # # # # 9 # (Example 3): Input number: 5 Output: # # # # 1 # # # # # # # # 2 # # # # # # # # 3 # # # # # # # # 4 # # # # 1 2 3 4 5 6 7 8 9 # # # # 6 # # # # # # # # 7 # # # # # # # # 8 # # # # # # # # 9 # # # #
Anyone can help me? I'm not asking the code to make this program, I have trouble to understand the algorithm to make this program
Sorry, my English isn't good enough.