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

Total Post:19

Points:133
C#  OOPS 
C#
 192  View(s)
Ratings:
Rate this:
Change degree Celsius(0°C) to Fahrenheit(°F)
  1. Post:31

    Points:219
    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

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!