![Trending Articles on Technical and Non Technical topics](/images/trending_categories.jpeg)
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
C++ program to convert Fahrenheit to Celsius
In this program we will see how to convert Celsius to Fahrenheit using C++. As we know the formula is simple.
Algorithm
Begin Take the Celsius temperature in C calculate F = (9C/5)+32 return F End
Example Code
#include<iostream> using namespace std; main() { float f, c; cout << "Enter temperature in Celsius: "; cin >> c; f = (9.0*c/5.0)+32; cout << "Equivalent Fahrenheit temperature is: " << f; }
Output
Enter temperature in Celsius: 37 Equivalent Fahrenheit temperature is: 98.6
Advertisements