Login
Sign Up
Home
Program
Project
My Zone
Support
Show Code
Browse Program
Search Program
Calculate the area, perimeter and diagonal of square.
Input Variables
Output Variables
Program Code
Description
Variable Name *
(dynamic type)
UP
Down
Delete
Default Value *
Description *
Multi Lines
Variable Name *
(dynamic type)
UP
Down
Delete
Description *
Variable Name *
(dynamic type)
UP
Down
Delete
Description *
Variable Name *
(dynamic type)
UP
Down
Delete
Description *
Input Variables List
Output Variables List
Source Code
area=a*a; perimeter =4*a; diagonal = a*Math.Sqrt(2);
Subject
Description
A square is a regular polygon with four sides. It has four right angles and parallel sides.
Square Formula:
Area of Square =a*a
Perimeter of Square =4*a
Diagonal of Square = a*sqrt(2)
where a = side
Category
General
Created By
tech
Created Date
11/23/2010
Last Modify Date
11/23/2010
Calculation Count
21
Version
1.00
Positive
0
Neutral
0
Negative
0
Related Program ID
21 , 22 , 23
Copyright ©2009-2010 CUI WEI. All Rights Reserved.