r/learnprogramming • • Oct 07 '26

Are for and while/while-do loops actually hard for beginners or am i just a moron?

Can someone please tell me this? be honest please. I don't know if ive gotten so nervous about this that i just cant focus or if im just stupid, ive been doing some exercises for now and it aways leaves me stuck, idk if im missing something or if this is normal and i just need to study more...

EDIT: Hi guys, thank you so much for taking your time to reply to me, i feel a bit better now and will keep studying until it just clicks. I thank yall for offering to help me with the exercises but i honestly am a bit embarassed to post em here, after all, i honestly havent figured out a single one of them other than the ones that you just count and sum things. And also theres a lot of them im stuck at right now, but i'll keep trying :)

42 Upvotes

65 comments sorted by

View all comments

1

u/[deleted] Oct 09 '26

Do you need to study more, or are you asking for help without giving us enough context to understand what you’re actually struggling with when it comes to while and do-while loops?

Let me ask you a question similar to the one you’re asking us:

“Hey, idk if I can write a class. Am I just missing something, or is this normal?”

Would that give you enough information to help me understand what I don’t understand about classes?

Probably not, right? Because I haven’t explained what I’m struggling with, what I’ve tried, or where I’m getting stuck.

If you want help, try explaining what specifically you don’t understand about these loops. Are you struggling with how they work, when to use them, how to write them, or something else? The more specific you are about where you’re getting stuck, the easier it is for people to help you.