How can I make this. I want to add up each field like the following.
Field 1: 6
Field 2: 8
Field 3: 5
Field 4 : 9
When the hit enter, a final number will be made using the following process.
6+8+5+9 = 28 8+2 = 10 1+0= 1 Their final number will be 1. How can I do this? Thanks,
this might work but is meant for that scenario only, if you get a 3 digits answer it will break..
do the adding and store that value in a variable (28)
convert that value to a string STR(variable)
use left() and right() system-text functions to get the 2 and 8 and store them or convert them to numbers in the same line of code using int()
add again >> 10... repeat
Develop games in your browser. Powerful, performant & highly capable.
awesome ty danuyos. I will try this.