Computer Science, asked by ananyasathishkumar14, 1 day ago

write an algorithm to get the value of sides of square from the user and find it's area

Answers

Answered by shaswatraj2008
0

Answer:

Explanation:

An algorithm is just a step-by-step list for doing something. We’ll be making a list of steps for calculating (A)^2, where A = the area of a square.

What is the area of a square? Length is a 1D measurement, it tells us distance in one direction. Area is a 2D measurement, it is distance^2 or distance*distance. In the case of a square, the shape has width = height, so we can say A = width*width = height*height.

Similar questions