
- 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 perform Celsius to Fahrenheit Conversion
Firstly, set the Celsius temperature −
double celsius = 36; Console.WriteLine("Celsius: " + celsius);
Now convert it into Fahrenheit:
fahrenheit = (celsius * 9) / 5 + 32;
You can try to run the following code to convert Celsius to Fahrenheit.
Example
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Demo { class MyApplication { static void Main(string[] args) { double fahrenheit; double celsius = 36; Console.WriteLine("Celsius: " + celsius); fahrenheit = (celsius * 9) / 5 + 32; Console.WriteLine("Fahrenheit: " + fahrenheit); Console.ReadLine(); } } }
Output
Celsius: 36 Fahrenheit: 96.8
- Related Articles
- Program for Fahrenheit to Celsius conversion in C
- Program for Celsius To Fahrenheit conversion in C++
- Explain the conversion of Celsius and Fahrenheit.
- How to convert Celsius to Fahrenheit and Fahrenheit to Celsius?
- C# Program to Convert Fahrenheit to Celsius
- C++ program to convert Fahrenheit to Celsius
- How to convert Fahrenheit into Celsius and, Celsius into Fahrenheit ?
- Convert Fahrenheit to Celsius using C Program
- Program for Fahrenheit to Kelvin conversion in C++
- How to convert Celsius into Fahrenheit?
- How to Convert Celsius To Fahrenheit using Python?
- C# Program to perform Currency Conversion
- Relation Between Celsius and Fahrenheit
- 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?

Advertisements