Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ program to convert celsius to fahrenheit

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