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.

Write a FOR loop that computes the following: >> The product…

Write a FOR loop that computes the following: >> The product of all even numbers between start and stop (inclusive), when start and stop are read in as integers from user input. You can assume that the input will always be integers and stop is greater than start.