Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _02._Circle_Area
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- double r = double.Parse(Console.ReadLine());
- //лице на кръг = пи * r * r
- double area = Math.PI * r * r;
- Console.WriteLine($"{area:F12}"); //форматиране
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment