changed sign
[mirrors/Programs.git] / java / obrazce.java
CommitLineData
7824a618
H
1public class obrazce {
2 private static void obrazec(int o) {
3 switch(o) {
4 case 0: //ctverec
5 System.out.println("+--+");
6 System.out.println("| |");
7 System.out.println("+--+");
8 break;
9 case 1: //kruh
10 /*System.out.println(" ###");
11 System.out.println(" # #");
12 System.out.println("# + #");
13 System.out.println(" # #");
14 System.out.println(" ###");*/
15
16 System.out.println(" __.......__ ");
17 System.out.println(" _.-'' '-.. ");
18 System.out.println(" ,-' '-. ");
19 System.out.println(" ,' '. ");
20 System.out.println(" ,' '\\ ");
21 System.out.println(" / ` ");
22 System.out.println(" / `. ");
23 System.out.println(" / \\ ");
24 System.out.println(" | | ");
25 System.out.println(" | | ");
26 System.out.println(" | | ");
27 System.out.println(" | | ");
28 System.out.println(" | .' ");
29 System.out.println(" | | ");
30 System.out.println(" | .' ");
31 System.out.println(" \\ / ");
32 System.out.println(" \\ ,' ");
33 System.out.println(" ` / ");
34 System.out.println(" '. ,' ");
35 System.out.println(" '-. _,' ");
36 System.out.println(" '-._ _,-' ");
37 System.out.println(" '`--......---' ");
38
39 break;
40 case 2: //trojuhelnik
41 System.out.println(" .");
42 System.out.println(" / \\");
43 System.out.println("/___\\");
44 break;
45 }
46 }
47
48 public static void main(String[] Args) {
49 for(int i = 0; i <= 2; i++) {
50 obrazec(i);
51 System.out.println("");
52 }
53 }
54}
This page took 0.182481 seconds and 4 git commands to generate.