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