Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace o
- {
- class Program
- {
- public static void Main(string[] args)
- {
- string[] tabNb = new string[10];
- int compteur = 0;
- for (int i = 0; i < tabNb.Length;i++)
- {
- Console.Write("Entrez le {0} nom : ", i+1);
- string Nom = (Console.ReadLine());
- if (Nom == "Aubry"){
- compteur++;
- }
- }
- Console.WriteLine("Il y a {0} noms",tabNb.Length);
- Console.WriteLine("Il y a {0} fois le mots Aubry",compteur);
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement