The Student Room Group

Help me plz with my computer science

It’s a pseudocode
Star=1
While star < 5
Write(“*”)
Next n
Writeline
Star=star + 1
Endwhile

What will be the output?
The output would be
*
*
*
*
As the star variable will be equal to 5 after that and so the loop will not go again.

Quick Reply

Latest

Trending

Trending