logo

Crowdly

Dans le code suivant, il y a deux erreurs : Sub Epreuves2() Dim n As Integer...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Dans le code suivant, il y a deux erreurs :

Sub Epreuves2()

Dim n As Integer, i As Integer

Dim nom As String

Dim maxnom As Double

Dim x As Single, y As Single, z As

Single

Dim m As Single, maxm As Single

maxnom=«»

maxm=0

n

= InputBox(« Donnez le nombre d’élèves »)

For

i = 1 to n

     nom = InputBox(«Donnez le nom de l’élève»)

     x = InputBox(« Donnez la note de la

première épreuve »)

     y = InputBox(« Donnez la note de la

deuxième épreuve »)

    z = InputBox(« Donnez la note de la

troisième épreuve »)

                    

m =

(x + y + z) / (3)

     If

m > maxm Then

          maxm = m

          maxnom = nom

     Next

End If

MsgBox

« L’élève » & maxnom & « a la moyenne maximale » & maxm

End

Sub

0%
67%
33%
0%
More questions like this

Want instant access to all verified answers on moodle-exam.unistra.fr?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!