using System;
      namespace DegreeConverter
      {
          public class CelsiusDegreeConverter
          {
              private float celsius;
              public float Celsius
              {
                  set
                  {
                      celsius = value;
                  }
              }
              public void ConvertDegreeToKelvin()
              {
                  Console.WriteLine("The conversion of celsius {0} is = {1}", celsius, (celsius + 273));
              }
              public void ConvertDegreeToFahrenheit()
              {
                  Console.WriteLine("The conversion of celsius {0} is = {1}", celsius, (celsius * 9 / 5) + 32);
              }
          }
      }
      
      Csharp language logo

      Celcius to Degree

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.