weather.bao
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# weather.bao — tableau météo
jours = ["Lundi", "Mardi", "Mercredi", "Jeudi", "Vendredi"]
temperatures = [28, 26, 24, 27, 30]
icones = ["☀️", "⛅", "🌧️", "☀️", "☀️"]
afficher("🌤️ Météo de la semaine")
total = 0
pour i dans intervalle(longueur(jours)):
afficher(jours[i] + ": " + texte(temperatures[i]) + "°C " + icones[i])
total = total + temperatures[i]
moyenne = total / longueur(jours)
afficher("Moyenne: " + texte(moyenne) + "°C")
Baobab Studio Terminal v1.0.0 — type 'help' for commands