Given an input integer, num, write a WHILE loop that prints…
Given an input integer, num, write a WHILE loop that prints out all of the squares less than the value of num. For example, if num is 100, print out the following: 0 1 4 9 16 25 36 49 64 81 1. Prompt the user to input an integer value.2. Assume that the input will always be a positive integer greater than 0.