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)
- {
- int[] tab10Valeurs = {25, 14, 50, 51,15, 14,13,12,18,18};
- Console.WriteLine(" V ? ");
- int V = int.Parse(Console.ReadLine());
- bool oui = false;
- for (int i = 0;i < tab10Valeurs.Length;i++) {
- if (V == tab10Valeurs[i]){
- Console.WriteLine(" Le nombre est dans la tableau Γ l'indice {0}", i);
- oui = true;
- }
- }
- if (oui == false){
- Console.WriteLine(" Le nombre n'est pas dans la tableau ");
- }
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement