while it should multiply 3, 2, and 1.
Since everyone has made them already, here is mine.
Since everyone has made them already, here is mine. I added comments to most of the lines so he can learn by it.Code: QB64: [Select]
A1$ = MID$(A$, 1, 1) 'Set A1$ to the first number in A using MID$. The first 1 in MID$ is the starting point, the second number 1 is the ending point of the string. A2$ = MID$(A$, 2, 1) 'Set A2$ the same way you did A1 but start with the 2nd number and then 1 as just the one digit. A3$ = MID$(A$, 3, 1) 'Set A3$ the same way you did the last 2, but start as the 3rd number and then 1 as just the one digit. A1 = VAL(A1$) 'Set A1 as a numerical variable from the A1$. MID$ only uses strings which is why we had to use strings above. Answer = A1 * A2 * A3 'Here is your answer. INPUT "Press enter for another one."; b$
LOL woops thanks Steve! What happened was that I had a strict 3 digit number and today I tossed in the random code without thinking it could be under 100. LOL
Well I hope no one feeds Steve's NumberOfDigits Function a negative number.
Signed, Also Failed. ;-))
Yes I did miss, I fail again! ;-))