desislava_topuzakova

2. Лице на кръг (с точност 12 знака)

Feb 26th, 2022
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. using System;
  2.  
  3. namespace _02._Circle_Area
  4. {
  5. internal class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9. double r = double.Parse(Console.ReadLine());
  10. //лице на кръг = пи * r * r
  11. double area = Math.PI * r * r;
  12. Console.WriteLine($"{area:F12}"); //форматиране
  13. }
  14. }
  15. }
  16.  
Advertisement
Add Comment
Please, Sign In to add comment