fork download
  1. // This is a CSharp program
  2. using System;
  3.  
  4. public class Program
  5. {
  6. public static void Main()
  7. {
  8. // Дано
  9. double x1 = 2.6;
  10. double x2 = 2.8;
  11. double a = 3.0;
  12. double b = 6.0;
  13. double c = 0.0;
  14.  
  15. // Обчислення
  16. c = (Math.Pow(x1, 2) + Math.Pow(x2, 2) - a) / (x1 + b);
  17.  
  18. // Виведення результату
  19. Console.WriteLine("Final result c = " + c.ToString("F4"));
  20. }
  21. }
Success #stdin #stdout 0.07s 29108KB
stdin
Standard input is empty
stdout
Final result c = 1.3488