using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Exemple6._4 { class Program { static void Main(string[] args) { /* Énoncé: Écrire un programme qui affiche les tables de multiplication * d'un nombre entre 1 et 9 lu au départ et répéter le processus jusqu'à lire un 0. */ int nombre, total; Console.Write("Donnez-moi votre nombre: "); nombre = int.Parse(Console.ReadLine()); while (nombre!=0) { if((nombre<10)&&(nombre>0)) { for (int i = 0; i < 11; i++) { total = i * nombre; Console.WriteLine("{0} x {1,2} = {2}",nombre,i,total); } } else { Console.WriteLine("Veuillez donner un nombre en 1 et 9 SVP! "); } Console.Write("Donnez-moi votre nombre: "); nombre = int.Parse(Console.ReadLine()); } } } }