Read an integer N. Print the square of each one ofthe even values from 2 to N including N if is the case.
Input
The input contain an integer N.
Output
Print the square of each one of the even valuesfrom two to N, as the given example.
Sample Input&
6
Sample Output
2^2 = 4
4^2 = 16
6^2 = 36
The answer to the question is available in the PDF file https://assignmentexpert.com/https://assignmentexpert.com/homework-answers/programming-answer-38871.pdf
Comments
Leave a comment