fork download
  1. //This is my CSharp Language program
  2. using System;
  3. //using System.Math;
  4. public class MyLab
  5. {
  6. public static void Main()
  7. {
  8. const double x=3.981;
  9. const double z=0.512;
  10. //const double e=2.71828; //Math.e
  11. double b=0.0;
  12. Console.WriteLine("Please enter value for N\n");
  13. b= double.Parse(Console.ReadLine());
  14. Console.WriteLine("b=\n"+b);
  15. b=Math.Sqrt(Math.Exp(x-1)/Math.Sin(z));
  16.  
  17. Console.WriteLine("Finel result is B="+b);
  18. }
  19. }
Success #stdin #stdout 0.07s 28332KB
stdin
0.1
stdout
Please enter value for N

b=
0.1
Finel result is B=6.342384416662924