This Post Contains A C++ Program For Conversion Of Fahrenheit To Celsius With Correct Source Code & Output. This Program Is Written, Compiled & Executed At TurboC/C++3.0 Compiler & Will Help You To Understand The Concept Of 'Conversion' From C++ Language. It Is A Well-Structured Program With Proper Comments Which Provides Step-By-Step Description Of Various Features Of The Language In A Simple & Easy-To-Understand Way.
# Note : You Can Simply Copy-Paste The Following Program Or Code Into Compiler For Direct Result.
C++ Program For Conversion Of Fahrenheit To Celsius.
/* Declaration Of Header Files */
# include <iostream.h>
# include <conio.h>
/* Start Of Main Program */
void main()
{
/* Declaration Of Variables */
float c, f;
clrscr();
/* Asking For The Input From User */
cout << " Enter Temp. In Fahrenheit : ";
cin >> f;
c = ( f - 32 ) * 5.0 / 9.0;
cout << " \nTemp. In Celsuis : " << c;
getch();
}
/* End Of Main Program */
Output :
Enter Temp. In Fahrenheit : 110 F
Temp. In Celsius : 43.333332 C
# Click : Here To View 'C++ Program For Conversion Of Celsius To Fahrenheit' Program.
This blog provides an overview about basic structure of C/C++ programs and their execution, which makes it an ideal guidance source for Programmers and Students. Based on practical approach this blog features a wide range of programs, which enables the learner to understand the techniques such as: Simple Programs, Loops, Arrays, Functions, Objects, Operator Overloading, Polymorphism, Files, Graphics, Strings, Sorting and Searching Methods, Stack, Queues, Link-Lists, Trees and Mini-Projects.
Subscribe to:
Post Comments (Atom)
Blog Archive
-
▼
2012
(37)
-
▼
December
(11)
- C++ Program To Find NCR Factor.
- C++ Program For Printing ASCII Values On Screen/Co...
- C++ Program For Conversion Of Integers/Numbers Int...
- C++ Program To Print Even Numbers Upto A User-Spec...
- C++ Program To Find & Print An Armstrong Number.
- C++ Program For Conversion Of Decimal No Into Bina...
- C++ Program To Find & Print Twin Prime Numbers.
- C++ Program To Find Prime Factors Of A Number.
- C++ Program To Find Lowest Number Out Of Three Num...
- C++ Program To Find A Factorial Of A Number.
- C++ Program For Conversion Of Fahrenheit To Celsius.
-
▼
December
(11)
No comments:
Post a Comment