Bonjour à tous
Voila mon problème j'aimerai remplir un tableau grâce à console.readline(); mais dans une boucle do while et quand j'entre une certain mot je sors de la boucle.
Je crois que c plus simple si je poste le code.

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
 
namespace Boucle
{
    class Program
    {
        static void Main(string[] args)
        {
 
            string[] TaxRates = new string[5];
 
            string entry = null;
            do
            {
 
                for (int i = 0; i < TaxRates.Length; i++)
                {
                    TaxRates[i] = Console.ReadLine();
                     entry = TaxRates[i];
                    Console.WriteLine(TaxRates[i]);
                }
            } while (entry != "fini");
 
 
        }
    }
}