Je voudrais savoir comment faire pour que quelqu'un rentre une réponse (un nombre) dans un temps imparti.
J'ai trouvé une solution mais je pense qu'on peut mieux l'optimiser mais comment ?
- Code: Tout sélectionner
1->H
0->X
"1234567890"->Str1
" "->Str3
Repeat K=105
0->K
getKey->K
If K=102
Then
Output(1,H,0)
92üN
End
If K>=92 and K=<94
Then
Output(1,H,K-91
91->N
End
If K>=82 and K=<84
Then
Output(1,H,K-78
78->N
End
If K>=72 and K=<74
Then
Out>put(1,H,K-65
65-N
End
If K!=105 and K!=0
Then
sub(Str1,K-N,1)->Str2
Str3+Str2->Str3
H+1->H
End
X+1->X
If X=200
Disp "TROP TARD
End
Str3
Auriez-vous une idée pour l'optimiser ou alors avez-vous une autre solution ?
Merci d'avance