Exercice 01
Énoncé
- Vous pouvez visualiser l'énoncé de l'exercice
Solution
import 'dart:io'; void main() { stdout.write("Quel est votre nom? "); String name = stdin.readLineSync()!; print("Salut, $name ! Quel âge avez-vous?"); int age = int.parse(stdin.readLineSync()!); int yearsToHunderd = 100 - age; print("$name, vous avez $yearsToHunderd ans pour avoir 100 ans"); }Exercice 02
Énoncé
- Vous pouvez visualiser l'énoncé de l'exercice
Correction