• Post Reply Bookmark Topic Watch Topic
  • New Topic

Help with scaling of printing text  RSS feed

 
Tuan Ma
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, I am trying to write something to print a man climbing stairs in the console. I was able to write something that could print the man climbing the stairs, but I have hit a road block. I had trouble finding a way to correctly print the right number of spaces underneath the stairs. Could I have some suggestions or hints?

 
Campbell Ritchie
Marshal
Posts: 56518
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

Start by moving all that code out of the main method. I suggest you need methods which print a man, which print a step (of different sizes), etc. Also a method which moves things to the right by inserting spaces.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!