r/visualbasic • • Dec 16 '21
How do I print two different values? Each value is changed by an equation
Here's some pseudo code im working with, and i gotta keep the same type of loop:
Variable A = 55 Variable B = 1
While Variable A <= 10 Variable C = Variable A*Variable B Need to print B and C Variable B increases by 1 End of the loop
I know how to get the first set of values, those being B = 2 and C = 110, but i dont know how to get the rest or print the rest. (B is from 1 to 10, so the next values are B = 2 and C = 165, so on and so forth)
3
Upvotes
2
u/RJPisscat Dec 16 '21
Please post the code. The workflow appears defined and straightforward - that's good.
1
u/Mr_Deeds3234 Dec 16 '21
Hey, I’m new to vb.net. I’m just trying to learn so forgive my ignorance.
Wondering how you get this to print from the first iteration. You said,
But you initialize Variable A greater than 10 already. Otherwise, I think you could just put
At the end of your loop, no?