Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ program to convert fahrenheit to celsius

#include<iostream>
using namespace std;
float scropio(float happy);
int main()
{
	float celcious;
	float fahrenhiet;
	cout<<"Please enter the tem in Fahrenhiet=";
	cin>>fahrenhiet;;
	cout<<"F.";
	celcious=scropio(fahrenhiet);
	cout<<"
Celcious="<<celcious<<" C."<<endl;
	cout<<endl;
	return 0;
}
float scropio(float fahrenhiet)
{
	float celcious;
	celcious = ((fahrenhiet-32)*5/9);
	return celcious;
}
Source by easycodebook.com #
 
PREVIOUS NEXT
Tagged: #program #convert #fahrenheit #celsius
ADD COMMENT
Topic
Name
7+9 =