Question: Write a Kotlin program that contains two loops, (1) a for loop that prints out the numbers 1-10 and (2) a while loop that prints
Write a Kotlin program that contains two loops, (1) a for loop that prints out the numbers 1-10 and (2) a while loop that prints out the even numbers between 0 and 30.
Write a Kotlin program with delcares a variable assigns it a value between 0 and 23. Print "good morning" if the variable is less than 12, "good afternoon" if the variable is between 12 and 18 and good evening if the variable is greater than 18.
Write a Kotlin program that declares two variables: one that stores a name as a string and another that stores an age as an integer. Print out a string that contains those variables using string template. Example output: Name = Ray and Age = 25
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
