You have a string variable for your daily activities that needs to be repeated for a whole week and then printed. Fill in the blanks in the code to set the type of the variable to a string, repeat your daily activities 7 times, and finally, use the right function to output the entire week's routine.
String basics
Echoes of Daily Echoes: A Weekly Reflection
Report a typo
Fill in the gaps with the relevant elements
fun main() {
dailyRoutine = "Wake up. Exercise. Breakfast.\n"
val weeklyRoutine = dailyRoutine.(7)
(weeklyRoutine)
}Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.