Back to tasks
Square and cube
BeginnerPython for kids 路 Lesson 18: Module 1 summary: First steps
Problem Statement
Read a number n and print n squared, and on the second line n cubed.
Input Format
One whole number n (0..1000).
Output Format
Exactly the text from the example.
Examples
Example 1
Input
3
Output
9 27