Try to find the area of various shapes!


Question 1: Calculate the Area of a Square

Write a Python program which accepts the length of a square from the user and compute the area.

INPUT:

There will be one input.

  1. Length of the square (integer)

OUTPUT:

Program should print a single integer representing the area of the square.

EXAMPLE

INPUT:

4

OUTPUT:

16


Question 2: Calculate the Area of a Rectangle

Write a Python program which accepts the length and height of a rectangle from the user and compute the area.

INPUT:

There will be two inputs.