Avez-vous une question? (216) 97 656 803 hajjriadh@gmail.com
Flutter

Correction Exercices les variables et les constantes dans Dart Série 01

Un cours complet pour maîtriser Correction Exercices les variables et les constantes dans Dart Série 01.

0 chapitres 0 QCM Accès gratuit
  1. Exercice 01

    1. Énoncé
    2. 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");
      }
      
  2. Exercice 02

    1. Énoncé
    2. Correction