Scan med din iPhone for at installere
Forhåndsvisning
Convert between Celsius (°C) and Fahrenheit (°F)
Nyheder
Version 1.0
First release
Hvad den gør
14 handlinger-
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
Vis som kode
Alle genvejens handlinger skrevet ud i Cherri, et programmeringssprog til genveje. Perfekt til at lære, hvordan den virker.
#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")
}
Åbn i Cherri Playground
Dekompileret med cherri 2.3.0 (GPL-2.0). Kan kræve små rettelser, før den kan kompileres.
Bedømmelser og anmeldelser
Skriv en anmeldelse–
ud af 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Ingen anmeldelser endnu. Vær den første!
Annonce
Mere fra arirafiq
Du vil måske også kunne lide
Annonce