Assignment (part A): Your goal is to solve the following simpleprogramming exercise. Using a FOR loop write an algorithm thatdisplays the squares of the numbers 1 to 10 to console output.Thought provoking question: Do you need to accept input?Assignment (part B): Using a pretest WHILE loop write an algorithmthat displays the squares of the numbers 1 to 10 to consoleoutput.Assignment (part C): This is extra for those who desire achallenge. Accomplish the same output as a