Guest User

Untitled

a guest
Mar 24th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. static void Main(string[] args)
  2. {
  3. double area, raio , pi;
  4. pi = 3.14159;
  5. raio = Convert.ToDouble(Console.ReadLine());
  6. area = pi * Math.Pow(raio,2);
  7. Console.WriteLine("A={0}n",area.ToString("N0"));
  8. }
  9.  
  10. using static System.Console;
  11. using static System.Math;
  12.  
  13. public class Program {
  14. public static void Main(string[] args) {
  15. if (double.TryParse(ReadLine(), out var raio)) WriteLine($"A = {PI * Pow(raio, 2):N4}");
  16. }
  17. }
Add Comment
Please, Sign In to add comment