*PSEUDO CODE* Iteration - Count controlled loops FOR NEXT LOOP
ฝัง
- เผยแพร่เมื่อ 9 ต.ค. 2024
- Please SUBSCRIBE if this video has been helpful.
LEARN MORE about pseudocode here:
• IGCSE PSEUDOCODE GUIDE
Please subscribe to be notified as more videos are uploaded and leave a like :)
Leave a comment if you have a suggestion for a future video you would like.
Happy Coding!
You're very welcome, I'm glad if it's helped you😊
Thank you
since we know our loop will run 30 times on the output " enter number" which number are we entering? 30?
Hi and thanks for your question. In the pseudocode below based on the video there are 2 variables "count" and "number".
On line 1 "count" is the loop variable which will start at 1 and every time we get to line 4 "count" will go up by 1 automatically. When "count" gets to 30 the loop will stop.
Every time we get to line 3 (INPUT number) the user will type in a number of their choice which is then assigned to "number".
The code shows you how a FOR loop works. In this case the user wants to type in 30 numbers. When count reaches 30 the loop will automatically stop.
I hope this helps :)
1 FOR count
hi.do you have lessons for learning pseudocode from beginning
as I wana know how to use next, repeat in pseudocode
Hi, I have videos in the playlist below which are practical, you can write pseudocode as you follow the video. The 3rd, 4th, 5th, 6th and 7th videos cover FOR NEXT. Then the next couple cover REPEAT/WHILE.
My pseudocode is just for example, in reality you pseudocode can be different it just needs to make sense :)
I hope this helps.
th-cam.com/play/PL0FilmS1pCoZr2JuEX3_DPEiXcOjBtJYo.html&feature=shared