Kotlinlearncs.online LogoJava
Return to List

Solve: Print Hellos Function

Created By: Justin Maier
/ Version: 2024.8.0

Write a method printHellos that takes a single int argument and prints "Hello!" that many times, each on a separate line. If the argument is 0 or less, it should print "Uh oh!" instead.

Related Lessons

Stuck? You may find these lessons helpful: