Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Galg
- {
- public static void print(int stage)
- {
- String line6 = "", line5 = "|", line4 = "| ", line3 = "| ", line2 = "| ";
- if(stage > 1)
- line5 += "/";
- if(stage > 2)
- line5 += " |";
- if(stage > 3)
- line4 += " O ";
- if(stage == 5)
- line3 += " |";
- if(stage > 5)
- line3 += "/|";
- if(stage > 6)
- line3 += "\\";
- if(stage > 0)
- line6 = "____";
- if(stage > 7)
- line2 += "/";
- if(stage > 8)
- {
- line2 += "\\";
- }
- System.out.println(line6 + "\n" + line5 + "\n" + line4 + "\n" + line3 + "\n" + line2 + "\n|_ _");
- }
- }
Add Comment
Please, Sign In to add comment