using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Exercice7._4P123 { class Program { static void Main(string[] args) {/*Énoncé : écrire un programme permettant de déterminer * la plus grande notes et d'afficher * sa position dans un tableau de notes.*/ //Déclaration des varibles const int Taille_Max = 100; int taille,posMax=0; float[] notes = new float[Taille_Max]; float notMax=0; //Lécture de la taille du tableau Console.Write("Donnez-moi le nombre de notes à lire: "); taille = int.Parse(Console.ReadLine()); //Lécture des notes for (int i = 0; i < taille; i++) { Console.Write("Donnez-moi la note No {0}: ", i + 1); notes[i] = float.Parse(Console.ReadLine()); if (i == 0) notMax = notes[i]; } for (int i = 1; i < taille; i++) { if(notes[i]>notMax) { notMax = notes[i]; posMax = i; } } Console.WriteLine("La plus grande note= {0} et elle se trouve à la position {1}",notMax,posMax); Console.Read(); } } }