Make a program that squares the positive of three numbers entered from the keyboard

Make a program that squares the positive of three numbers entered from the keyboard and leaves the negative ones unchanged.

(The solution to the problem is provided in the programming language – Python version 3.6.4).

Let’s create variables a, b and c, the values of which are entered by the user from the keyboard.

Next, using the if condition, we find among them the numbers whose values are positive, then we square them (that is, we multiply the number by itself), but we do not change the negative values in any way. As a result, we get the following program:

a = int (input ())
b = int (input ())
c = int (input ())
if a> 0:
a * = a
if b> 0:
b * = b
if c> 0:
c * = c
print (a, b, c)



One of the components of a person's success in our time is receiving modern high-quality education, mastering the knowledge, skills and abilities necessary for life in society. A person today needs to study almost all his life, mastering everything new and new, acquiring the necessary professional qualities.