Kotlinlearncs.online LogoJava
Return to List

Solve: Print Hellos with assert

Created By: Justin Maier
/ Version: 2024.9.0

Write a void function printHellos that takes a single int argument and prints "Hello" that number of times. However, you should first add a check that the argument is at least 0.

Related Lessons

Stuck? You may find these lessons helpful: