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,138};
- int somme = 0;
- for (int i = 0;i < tab10Valeurs.Length;i++) {
- somme = somme + tab10Valeurs[i];
- }
- int moyenne = somme / tab10Valeurs.Length;
- Console.WriteLine(moyenne);
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement