Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TextWindow.ForegroundColor = "White"
- TextWindow.WriteLine("Hallo, Willkommen zu meinem Tutorial. Wie ist dein Name?")
- Name = TextWindow.Read()
- TextWindow.WriteLine("Hallo, " +Name)
- TextWindow.ForegroundColor = "Red"
- TextWindow.WriteLine("Du kannst den Taschenrechner nun verwenden, viel Spaß!")
- TextWindow.ForegroundColor = "green"
- TextWindow.Write("Bitte gebe die erste Zahl ein ")
- Zahl1 = TextWindow.Read()
- TextWindow.Write("Bitte gebe nun die Zweite Zahl ein ")
- Zahl2 = TextWindow.Read()
- TextWindow.Write("Bitte gebe nun den Operator an ")
- Operator = TextWindow.Read()
- If Operator = "+" Then
- Ergebnis = Zahl1 + Zahl2
- ElseIf Operator = "-" Then
- Ergebnis = Zahl1 - Zahl2
- ElseIf Operator = "*" Then
- Ergebnis = Zahl1 * Zahl2
- ElseIf Operator = "/" Then
- Ergebnis = Zahl1 / Zahl2
- Else
- TextWindow.ForegroundColor = "DarkRed"
- TextWindow.WriteLine("Bitte gebe einen Operator ein! ")
- EndIf
- TextWindow.ForegroundColor = "red"
- TextWindow.WriteLine("Ergebnis ="+Ergebnis)
- TextWindow.ForegroundColor = "Magenta"
- TextWindow.WriteLine("Calculator/Taschenrechner Tutorial by SlashCodings!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement