doubles and arithmetic operators : double Calculation « Data Type « C# / CSharp Tutorial






class MainClass
{

  public static void Main()
  {
  
    System.Console.WriteLine("10d / 3d = " + 10d / 3d);
    System.Console.WriteLine("10.0 / 3.0 = " + 10.0 / 3.0);
    double doubleValue1 = 10;
    double doubleValue2 = 3;
    System.Console.WriteLine("doubleValue1 / doubleValue2 = " + doubleValue1 / doubleValue2);

  }
}
10d / 3d = 3.33333333333333
10.0 / 3.0 = 3.33333333333333
doubleValue1 / doubleValue2 = 3.33333333333333








2.27.double Calculation
2.27.1.Implement the Pythagorean Theorem
2.27.2.doubles and arithmetic operators
2.27.3.Compute the area of a circle with 'double'
2.27.4.Calculate the radius of a circle given its area using Math function
2.27.5.Use the while statement to implement Newton's method for finding the square root
2.27.6.Do calculation with double value
2.27.7.double base Fahrenheit and Celsius (Centigrade) Scales
2.27.8.Returns the variable Area as a double value.