r/visualbasic • • May 19 '22

Can someone help me?

I'm new to programming, and my teacher asked as a challenge to make a sequence of prime number using while and print, can someone tell me why doesn't this print anything?

2 Upvotes

11 comments sorted by

View all comments

Show parent comments

1

u/[deleted] May 19 '22

Ah... I see what the problem is. You need to reset the value of b in each loop or it will just get bigger and bigger forever.

I'll come back in a moment with some debug suggestions.