Carpet price
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Sololearn
{
class Program
{
static void Main(string[] args)
{
const double price_per_foot = 22.4;
Console.WriteLine("Enter length of your room");
double length = double.Parse(Console.ReadLine());
Console.WriteLine("Enter width of your room");
double width = double.Parse(Console.ReadLine());
double area = (length * width) * price_per_foot;
Console.WriteLine("The price of {0} by {1} room is {2}",length ,width ,area);
}
}
}
Comments
Post a Comment