using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class GlazerCalc { static void Main() { double width, height, woodLength, glassArea; string widthString, heightString; // Console.ReadLine(); asks the user to input a value, and is placed in the widthString variable widthString = Console.ReadLine(); width = double.Parse(widthString); heightString = Console.ReadLine(); height = double.Parse(heightString); woodLength = 2 * (width + height) * 3.25; glassArea = 2 * (width * height); Console.WriteLine("The length of the wood is " + woodLength + " feet"); Console.WriteLine("The area of the glass is " + glassArea + " square metres"); } }
widthString
width = double.Parse(widthString);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)