While loop is used to iterate a part of the program repeatedly until the specified Boolean condition is true. As soon as the Boolean condition becomes false, the loop automatically stops.
Write a function to return an array containing the natural numbers from 1 to n. Write a function to return an array containing the natural numbers from 1 to n in reverse. Write a function to return an ...