External Exam Download Resources Web Applications Games Recycle Bin

Exercise 3 - Five Stars - Solution

BEGIN fiveStars
  asterisk = "*"
  number = 1

  WHILE number <= 5
    PRINT asterisk  
    number = number + 1
  ENDWHILE

END
def fiveStars():
  asterisk = "&ast;"
  number = 1
  while number <= 5:
    print(asterisk) 
    number = number + 1

fiveStars()