Objective
Write a program in Python that asks the user for an integer x and prints the result of adding it to its square.
Instructions
- Ask the user to enter an integer
x. - Calculate the square of
x. - Print on the screen the result of adding
xto its square.
2
6
Open the editor in full screen: the statement on the left and your code, the output and the tests on the right.
Start exercise