...

/

Challenge: Print the Square of a Positive Number

Challenge: Print the Square of a Positive Number

Write a function that prints the square of a positive number if the input is correct; otherwise, display a relevant error message.

Write code inside a function that receives a positive number as input and prints its square. If a negative number is entered, then ...