Voila je voudrais créer un petit jeux pourri mais des que je clique sur ok dans le boite de saisie , sa me dit trop grand et lorsque je fais annuler ça me dit trop petit . Regardez mon
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 Randomize ' Initialise le générateur de nombres aléatoires. upperbound=500 lowerbound=0 x = Int((upperbound - lowerbound + 1) * Rnd + lowerbound) k=0 do while k<>x k=inputbox("Le nombre inconu est ?") if k<x then msgbox("trop petit !") end if if k>x then msgbox("Trop grand !") end if loop Msgbox("GAGNé !!!!!!")
Partager