VOOZH about

URL: https://www.geeksforgeeks.org/dsa/program-find-area-square/

⇱ Program to find the area of a Square - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Program to find the area of a Square

Last Updated : 16 Feb, 2023

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. 
 

👁 Image


Formula : 

Examples: 
 

Input : 4
Output :16

Input :8
Output :64


 


 

Output: 
 

16

Time complexity: O(1)

space complexity: O(1)
.
 

Comment