
- C# Basic Tutorial
- C# - Home
- C# - Overview
- C# - Environment
- C# - Program Structure
- C# - Basic Syntax
- C# - Data Types
- C# - Type Conversion
- C# - Variables
- C# - Constants
- C# - Operators
- C# - Decision Making
- C# - Loops
- C# - Encapsulation
- C# - Methods
- C# - Nullables
- C# - Arrays
- C# - Strings
- C# - Structure
- C# - Enums
- C# - Classes
- C# - Inheritance
- C# - Polymorphism
- C# - Operator Overloading
- C# - Interfaces
- C# - Namespaces
- C# - Preprocessor Directives
- C# - Regular Expressions
- C# - Exception Handling
- C# - File I/O
- C# Advanced Tutorial
- C# - Attributes
- C# - Reflection
- C# - Properties
- C# - Indexers
- C# - Delegates
- C# - Events
- C# - Collections
- C# - Generics
- C# - Anonymous Methods
- C# - Unsafe Codes
- C# - Multithreading
- C# Useful Resources
- C# - Questions and Answers
- C# - Quick Guide
- C# - Useful Resources
- C# - Discussion
C# Program to Convert Fahrenheit to Celsius
Firstly, set the Fahrenheit temperature −
double fahrenheit = 97; Console.WriteLine("Fahrenheit: " + fahrenheit);
Now convert it into Celsius −
celsius = (fahrenheit - 32) * 5 / 9;
Example
You can try to run the following code to convert Fahrenheit to Celsius.
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Demo { class MyApplication { static void Main(string[] args) { double celsius; double fahrenheit = 97; Console.WriteLine("Fahrenheit: " + fahrenheit); celsius = (fahrenheit - 32) * 5 / 9; Console.WriteLine("Celsius: " + celsius); Console.ReadLine(); } } }
Output
Fahrenheit: 97 Celsius: 36.1111111111111
- Related Articles
- C++ program to convert Fahrenheit to Celsius
- Convert Fahrenheit to Celsius using C Program
- How to convert Celsius to Fahrenheit and Fahrenheit to Celsius?
- How to convert Fahrenheit into Celsius and, Celsius into Fahrenheit ?
- How to convert Celsius into Fahrenheit?
- C# Program to perform Celsius to Fahrenheit Conversion
- How to Convert Celsius To Fahrenheit using Python?
- Program for Fahrenheit to Celsius conversion in C
- Program for Celsius To Fahrenheit conversion in C++
- Write a program in Python Pandas to convert a dataframe Celsius data column into Fahrenheit
- How to Convert Temperature Units between Celsius, Kelvin and Fahrenheit in Excel?
- Relation Between Celsius and Fahrenheit
- What is the formula to convert temperature in the Fahrenheit scale to the Centigrade or Celsius scale?
- Explain the conversion of Celsius and Fahrenheit.
- Program for Fahrenheit to Kelvin conversion in C++

Advertisements