Converting
temperature of Celsius to Fahrenheit is simple with some basic mathematical
calculation. Below is the Example that receives the input in Celsius and
convert the same to the Fahrenheit with appropriate calculation.
Example :
using System;
namespace CelsiustoFahrenheit
{
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("Temperature in
Fahrenheit is(°F): " + faren);
Console.ReadLine();
}
}
}