Practical 7a

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

Practical 7a

Aim : converting Celsius into Fahrenheit


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

namespace ConsoleApp1
{
internal class Program
{
static void Main(string[] args)
{
double celcius, farrenhit;
Console.WriteLine("enter value of celcius");
celcius = Convert.ToDouble(Console.ReadLine());
farrenhit = (celcius * 1.8) + 32;
Console.WriteLine("temeperature in farenhit is " + farrenhit);
Console.ReadKey();
}
}
}

Output

You might also like