write a c program to accept the values of two sides of a shape check whether it is a square or rectangle . display it's area
Answers
Answer:
Dutch duck Vivi Vivi Vivi
Answer: A route that encircles a two-dimensional shape is called a perimeter. The term is Greek, meaning "around," and "meter." (measure). The size of the fence needed to enclose a yard or garden can be determined using the boundaries. The perimeter of rectangles or kites with only two distinct side lengths, such as x and y, is equal to 2x + 2y.
Explanation: A two-dimensional figure's area indicates how much surface area the form occupies. Square units of measurement, such as square inches, square centimeters, or square miles, are used to quantify area. Multiplication is used in the formula for calculating a rectangle's area: length * breadth = area. A square is a rectangle with four equally long edges. Just take a straight measurement from corner to corner. The corners are square if the dimensions are equal.
Apply the method to determine the perimeter of a rectangle: perimeter = 2 * (length + width). Apply the formula area = length * breadth to determine the area of a rectangle. Print the area and boundary values last. * Java application to calculate a rectangle's area and perimeter.
Learn more about dimensions from here;
https://brainly.in/question/31752108
https://brainly.in/question/17973640
#SPJ6