- Code: Tout sélectionner
Prgm
Dialog
Request "N.corpi",aux
EndDlog
expr(aux)->aux
For i,1,aux,1
............................??????
Dialog
Request "M",aux1
Request "V",aux2
EndDlog
expr(aux1)->aux1
expr(aux2)->aux2
Pause aux1*aux2
EndFor
EndPrgm
The calculator asks me how many are the bodies and according to the number of bodies, the calculator executes the loop. Suppose that the bodies are 2, then the cycle will be repeated for 2 times.
It will be like this:
N. Corpi 2
M= 3
V= 8
I want to see screen 3 * 8 = 24
M= 5
V= 2
I want to see screen 5 * 2 = 10
I can not save in a variable 3 * 8 = 24 and 5 * 2 = 10
Can anyone help me?
thanks a lot
mark