Write a Program to convert Celsius to Fahrenheit in C# ?

Total Post:44

Points:310
C#  OOPS 
C#
 482  View(s)
Ratings:
Rate this:
Change degree Celsius(0°C) to Fahrenheit(°F)
  1. Post:87

    Points:617
    Re: Write a Program to convert Celsius to Fahrenheit in C# ?

    using System;
    
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;

    namespace ConsoleApplication16
    {
        class Program
        {
            static void Main(string[] args)
            {
                int celsius, faren;
                Console.Write(" Temperature in Celsius(°C) : ");
                celsius = int.Parse(Console.ReadLine());
                faren = (celsius * 9) / 5 + 32;
                Console.WriteLine(" \n Temperature in Fahrenheit is(°F) : " + faren);
                Console.ReadLine();
            }
        }
    }

    Write a Program to convert Celsius to Fahrenheit in C# ?

Answer

Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.