Advertisement
Guest User

Untitled

a guest
Oct 17th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System;
  5. namespace пример
  6. {
  7. class Program
  8. {
  9. static double Nka(double a)
  10. {
  11.  
  12.  
  13. double n = double.Parse(Console.ReadLine());
  14. return Math.Sqrt(n) + n;
  15. }
  16.  
  17. static void Main(string[] args)
  18. {
  19.  
  20.  
  21. Console.Write("n=");
  22.  
  23. double n = double.Parse(Console.ReadLine());
  24. double z = (Math.Sqrt(6) + (6)) / 2 + (Math.Sqrt(13) + (13)) / 2 + (Math.Sqrt(21) + (21)) / 2;
  25.  
  26.  
  27.  
  28. Console.WriteLine(z);
  29.  
  30. Console.ReadLine();
  31. }
  32. }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement