Mit dem iPhone scannen, um zu installieren
Vorschau
Convert between Celsius (°C) and Fahrenheit (°F)
Neue Funktionen
Version 1.0
First release
Was er macht
14 Aktionen-
CommentAuthor: Ari R. Abdulla - Convert between Celsius (°C) and Fahrenheit (°F)
-
Choose from Menu
-
Choose from Menu°C to °F
-
Ask for Input°C?
-
Calculate
-
Calculate
-
Format Number
-
Show Result
-
Choose from Menu°F to °C
-
Ask for Input°F?
-
Calculate
-
Calculate
-
Format Number
-
Show Result
Als Code ansehen
Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.
#define color blue
#define glyph thermometer
/*
Author: Ari R. Abdulla
- Convert between Celsius (°C) and Fahrenheit (°F)
*/
menu nil {
item "°C to °F":
const ProvidedInput = prompt("°C?", "Number")
const CalculationResult = ProvidedInput * 1.8
const CalculationResult1 = CalculationResult + 32
formatNumber(CalculationResult1, 1)
show("{ProvidedInput} °C is {} °F")
item "°F to °C":
const ProvidedInput1 = prompt("°F?", "Number")
const CalculationResult2 = ProvidedInput1 - 32
const CalculationResult3 = CalculationResult2 / 1.8
formatNumber(CalculationResult3, 1)
show("{ProvidedInput1} °F is {} °C")
}
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 arirafiq
Das gefällt dir vielleicht auch
Werbung