-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProgram.cs
119 lines (87 loc) · 3.62 KB
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
using System;
using Angular;
using Rounded;
using ThreeDimension;
namespace Shapes
{
class Program
{
static void Main(string[] args)
{
int opt = -1;
while (opt != 0)
{
Console.WriteLine("Program Bentuk-Bentuk : ");
Console.WriteLine("============================================================");
Console.WriteLine("1. Persegi Sama Sisi");
Console.WriteLine("2. Ubin (Turuan Dari Persegi Sama Sisi)");
Console.WriteLine("3. Eternit / Plafon (Turuan Dari Persegi Sama Sisi)");
Console.WriteLine("4. Kubus (Turuan Dari Persegi Sama Sisi 3D)");
Console.WriteLine("............................................................");
Console.WriteLine("5. Persegi Panjang");
Console.WriteLine("6. Papan Tulis (Turuan Dari Persegi Panjang)");
Console.WriteLine("7. Pintu (Turuan Dari Persegi Panjang)");
Console.WriteLine("8. Balok (Turuan Dari Persegi Panjang 3D)");
Console.WriteLine("............................................................");
Console.WriteLine("9. Lingkaran");
Console.WriteLine("10. Bola");
Console.WriteLine("11. Kerucut");
Console.WriteLine("............................................................");
Console.WriteLine("0. Keluar");
Console.WriteLine("------------------------------------------------------------");
Console.Write("Pilih Opsi : ");
opt = Convert.ToInt32(Console.ReadLine());
switch (opt)
{
case 1:
Square sqr1 = new Square();
sqr1.input().display();
break;
case 2:
Tile tle1 = new Tile();
tle1.input().display();
break;
case 3:
Plasterboard plb = new Plasterboard();
plb.input().display();
break;
case 4:
Cube cube = new Cube();
cube.input().display();
break;
case 5:
Rectangle rct1 = new Rectangle();
rct1.input().display();
break;
case 6:
WhiteBoard whtb = new WhiteBoard();
whtb.input().display();
break;
case 7:
Door door = new Door();
door.input().display();
break;
case 8:
Block block = new Block();
block.input().display();
break;
case 9:
Circle circle = new Circle();
circle.input().display();
break;
case 10:
Sphere sphere = new Sphere();
sphere.input().display();
break;
case 11:
Cone cone = new Cone();
cone.input().display();
break;
default:
break;
}
Console.WriteLine("\n\n");
}
}
}
}