![]() |
VOOZH | about |
What is a square ?
Square is a flat shape, in one plane, defined by four points at the four corners. A square has four sides all of equal length, and four corners, all right angles (90 degree angles). A square is a kind of rectangle but with all sides equal.
Formula :
Examples:
Input : 4 Output :16 Input :8 Output :64
Output:
16
Time complexity: O(1)
space complexity: O(1)
.