Question: Subject: C# .NET Write a program that converts a temperature given in Fahrenheit into Celsius. Allow the user to enter values for the original Fahrenheit
Subject: C# .NET
Write a program that converts a temperature given in Fahrenheit into Celsius. Allow the user to enter values for the original Fahrenheit value. Display the original temperature and the formatted converted value. Number align values. Use appropriate methods for entering, calculating, and outputting results.
This is what I have...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks;
namespace TempConversion { class Program { static void Main(string[] args) { double celsius; Console.Write("Enter temperature in Fahrenheit : "); double fahrenheit = Convert.ToDouble(Console.ReadLine()); celsius = (fahrenheit - 32) * 5 / 9; Console.WriteLine("The converted Celsius temperature is : " + celsius); Console.ReadLine(); } } }
Step by Step Solution
There are 3 Steps involved in it
To develop a more detailed and complete solution for converting temperatures from Fahrenheit to Celsius in C here is a revised answer that incorporate... View full answer
Get step-by-step solutions from verified subject matter experts
