Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Cone
- {
- class Program
- {
- static void Main(string[] args)
- {
- double radius = double.Parse(Console.ReadLine());
- double height = double.Parse(Console.ReadLine());
- double volume = Math.PI * radius * radius * height / 3;
- double area = Math.PI * radius * (radius + Math.Sqrt(radius * radius + height * height));
- Console.WriteLine($"volume = { volume:f4}\narea = { area:f4}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement