What is the area of the largest possible Norman window with a perimeter of 31 feet? A = x(31/2-1/4 (2+pi)Ī rectangle has a perimeter of 10 meters. What is the length and width of the rectangle?Ī Norman window has the shape of a semicircle atop a rectangle so that the diameter of the semicircle is equal to the width of the rectangle. Find the dimensions of the rectangle if the perimeter is 44 in.Ī rectangle has a perimeter of 24 and an area of 35 square feet. The length of a rectangle is 2 more than 3 times its width. If the length of the rectangle is increased by 25% and the width is decreased by 20%, what is the change in the area of the rectangle? 16 sqĪ rectangle is 12 feet long and 5 feet wide. If the perimeter of the rectangle is 24, what is the perimeter of the square? A. PerimeterOfRectangle obj = new PerimeterOfRectangle() Ĭonsole.Write("Perimeter of rectangle is: " + obj.A square has the same area as a rectangle whose longer side is 2 times the length of its shorter side. using System ĭecimal length = Convert.ToDecimal(Console.ReadLine()) ĭecimal width = Convert.ToDecimal(Console.ReadLine()) In the below C# example, we have created one method to calculate the perimeter of the Rectangle. using System Ĭonsole.Write("Enter the value of length : ") ĭecimal Length = Convert.ToDecimal(Console.ReadLine()) Ĭonsole.Write("Enter the value of width : ") ĭecimal Width = Convert.ToDecimal(Console.ReadLine()) ĭecimal Perimeter = 2 * (Length + Width) Ĭonsole.Write("Perimeter of Rectangle is: " + Perimeter) The following C# Program will calculate the Perimeter of the Rectangle.
Take another variable named width and store the width of the rectangle into this.Take a variable named length and store the length of the rectangle into this.The following are the steps that we need to follow to solve this problem. Perimeter = 2 (l + w) Algorithm to Calculate the Perimeter of Rectangle in C# The perimeter of the given rectangle is l + w + l + w. Hence, we can find the perimeter by adding all four sides of a rectangle. The perimeter of a rectangle is the total length of all the sides of the rectangle. Both length and width are different in size.įormula to Calculate Perimeter of Rectangle. A rectangle is characterized by length (L) and width (W). The opposite sides of the rectangle are equal in length which makes it different from a square. The two sides at each corner or vertex meet at right angles.
Perimeter of a rectangle how to#
How to Remove Duplicate Elements from an Array in C#Ī Rectangle is a four sided-polygon, having all the internal angles equal to 90 degrees.How to find the angle between hour and minute hands of a clock at any given time in C#.How to Perform Right Circular Rotation of an Array in C#.How to Perform Left Circular Rotation of an Array in C#.How to convert a one-dimensional array to a two-dimensional array in C#.How to convert a two-dimensional array to one-dimensional array in C#.How to Find All Substrings of a Given String in C#.How to Remove Duplicate Characters From a String in C#.Reverse Each Word in a Given String in C#.Data Structures and Algorithms Tutorials.