Mit dem iPhone scannen, um zu installieren
I was bored so I made a 3 question really easy math quiz
Neue Funktionen
Version 1.0
First release
Was er macht
22 Aktionen-
Show Alert
-
Show Alert
-
Ask for Input
-
If
-
Show Alert
-
If
-
Show Alert
-
Show Alert
-
Show Alert
-
Ask for Input
-
If
-
Show Alert
-
If
-
Show Alert
-
Show Alert
-
Show Alert
-
Show Alert
-
Ask for Input
-
If
-
Show Alert
-
If
-
Show Alert
Als Code ansehen
Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.
#define color orange
#define glyph calculator
confirm("Really Easy Math Quiz")
confirm("5 + 5")
const ProvidedInput = prompt("", "Number")
if ProvidedInput == 10 {
confirm("10 is the correct answer 👏👏")
} else {
confirm("Wrong answer😔")
}
confirm("Alright next question")
confirm(" 2 + 10")
const ProvidedInput1 = prompt("", "Number")
if ProvidedInput1 == 12 {
confirm("12 was the correct answer👏👏")
} else {
confirm("Wrong answer😔")
}
confirm("Alright last question")
confirm("**Drum roll🥁🥁🥁🥁**")
confirm("10 + 9")
const ProvidedInput2 = prompt("", "Number")
if ProvidedInput2 == 19 {
confirm("You Completed The Quiz Excellent Job My Friend!")
} else {
confirm("You were so close you can do it again!")
}
In Cherri Playground öffnen
Mit cherri 2.3.0 (GPL-2.0) dekompiliert. Eventuell sind kleine Korrekturen nötig, bevor es kompiliert wird.
Bewertungen und Rezensionen
Rezension schreiben–
von 5
★★★★★
★★★★
★★★
★★
★
0 ratings
No reviews yet. Be the first to share what you think!
Werbung
Mehr von 12candy
Das gefällt dir vielleicht auch
Werbung