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