Thursday, June 3, 2021

C++ program convert temperature fahrenheit to celsius (POP) (116)

#include<iostream>

using namespace std;

int main()

{

int F,C;

cout<<"please enter the temperature in fahrenheit:";

cin>>F;

C=((F*5)-(5*32))/9;

cout<<" the temperature in fahrenheit:"<<F<<endl;

cout<<" the temperature in celsius:"<<C<<endl;

cout<<endl;

} 

No comments:

Post a Comment