fork download
  1. //This is my CSharp language program
  2. using System;
  3. public class MyLab
  4. {
  5. public static void Main()
  6. {
  7. double u=0.0;
  8. double v=0.0;
  9. double b=0.0;
  10. Console.WriteLine("Please enter value for u,v\n");
  11. u=double.Parse(Console.ReadLine());
  12. Console.WriteLine("u=\n"+u);
  13. v=double.Parse(Console.ReadLine());
  14. Console.WriteLine("v=\n"+v);
  15. b=Math.Sqrt(Math.Pow(Math.Sin(Math.Atan(u)),2) + Math.Cos(v));
  16. Console.WriteLine("Final result is b="+ b);
  17. }
  18. }
  19.  
Success #stdin #stdout 0.08s 30436KB
stdin
10.05
0.35
stdout
Please enter value for u,v

u=
10.05
v=
0.35
Final result is b=1.3890892813512952