Search
 
SCRIPT & CODE EXAMPLE
 

CPP

convert kelvin to Fahrenheit

#include<iostream>
using namespace std;
float program(float mamo);
int main()
{
	float kalvin;
	float fahrenhiet;
	cout<<"Please Enter your Tem in Kelvin=";
	cin>>kalvin;
	fahrenhiet=program(kalvin);
	cout<<"
Fahrenhiet="<<fahrenhiet<<".F"<<endl;
	return 0;
}
float program(float kalvin)
{
	float fahrenhiet;
	fahrenhiet=(9/5*(kalvin-273.15)+32);
	return fahrenhiet;
}
Comment

PREVIOUS NEXT
Code Example
Cpp :: position of max element in vector c++ 
Cpp :: life the universe and everything solution c++ 
Cpp :: array length c++ 
Cpp :: dynamic memory c++ 
Cpp :: C++ Infinite while loop 
Cpp :: how to know the number of a certain substring in a string in c++ 
Cpp :: c++ lettura file 
Cpp :: set width qpushbutton 
Cpp :: c++ switch statement 
Cpp :: SUMOFPROD2 solution 
Cpp :: c++ syntax 
Cpp :: char to string c++ 
Cpp :: c++ remove chars from string 
Cpp :: double array size c++ 
Cpp :: polymorphism in c++ 
Cpp :: string comparison c++ 
Cpp :: preorder 
Cpp :: qt make widget ignore mouse events 
Cpp :: one away coding question 
Cpp :: hello world cc++ 
Cpp :: program to swap max and min in matrix 
Cpp :: programs using vectors in c++ 
Cpp :: how to print items in c++ 
Cpp :: how to make randomizer c++ 
Cpp :: if else in c++ 
Cpp :: Converting Strings to Numbers in C/C++ 
Cpp :: how to use power in c++ 
Cpp :: c++ function pointer variable 
Cpp :: pow c++ 
Cpp :: use declaration to define a variable 
ADD CONTENT
Topic
Content
Source link
Name
1+4 =