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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started