Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Demo
- {
- class Program
- {
- static void Main(string[] args)
- {
- double length, width, heigth = 0;
- Console.Write("Length: ");
- length = double.Parse(Console.ReadLine());
- Console.Write("Width: ");
- width = double.Parse(Console.ReadLine());
- Console.Write("Height: ");
- heigth = double.Parse(Console.ReadLine());
- double volume = (length * width * heigth) / 3;
- Console.WriteLine("Pyramid Volume: {0:F2}", volume);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement