var note1 = 10;\nvar note2 = 12;\nvar note3 = 15;\nvar moyenne = (note1 + note2 + note3) / 3;\n// Moyenne = 12.33\n\nvar total = 0;\n\nfunction addNote() {\n var note = document.getElementById(\”noteInput\”).value;\n if (note > 0 && note <= 20) {\n total += parseFloat(note);\n document.getElementById(\"result\").innerText = \"Moyenne : \" + (total / 3).toFixed(2);\n }\n}\n\nfunction calculate() {\n var notes = document.getElementsByClassName(\"note\");\n var total = 0;\n for (var i = 0; i < notes.length; i++) {\n total += parseFloat(notes[i].value);\n }\n document.getElementById(\"result\").innerText = \"Moyenne : \" + (total / notes.length).toFixed(2);\n}\n\nfunction calculate() {\n // Récupération des valeurs\n var note1 = parseFloat(document.getElementById(\"note1\").value);\n var note2 = parseFloat(document.getElementById(\"note2\").value);\n var note3 = parseFloat(document.getElementById(\"note3\").value);\n var note4 = parseFloat(document.getElementById(\"note4\").value);\n\n // Calcul de la moyenne\n var moyenne = (note1 + note2 + note3 + note4) / 4;\n\n // Affichage du résultat\n document.getElementById(\"result\").innerText = moyenne.toFixed(2);\n}\n\n\n\n\nComment calculer une moyenne sur un tableau excel\n

\n\n\n\n

Comment calculer une moyenne sur un tableau excel

\n\n

\n

\n \n \n

\n

\n \n \n

\n

\n \n \n

\n

\n \n \n

\n \n

La moyenne sera affichée ici

\n

\n\n\n\n\n\n\n\n\n\n