Saturday 2 December 2017

C# Program to Perform Celsius to Fahrenheit Conversion


Code:

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

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

        }
    }
}


Output:

Enter the Temperature in Celsius (°C) :  20
Temperature in Fahrenheit(°F)  is  : 68


More C# Programs:




















100+ Best Home Decoration Ideas For Christmas Day 2019 To Make Home Beautiful

Best gifts for Christmas Day | Greeting cards for Christmas Day | Gift your children a new gift on Christmas day This Christmas d...