#WSQ05 Temperature

1 min read

Before you start reading my post, please click this link to listen to the correct music for this: Link to video

Code down below: 

//Mauricio Cooper A01630042

<iostream>

using namespace std;

int C,F;

int main () {

 

cout << endl;

cout << “Enter a Fahrenheit Degrees Temperature” << endl;

cout << endl;

cin >> F ;

cout << endl;

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

cout << “Your temperature in Celsius degrees is: ” << C << endl;

cout << endl;

 

if (C >= 100){

cout << “Water would boil at this temperature. This crap is hot.”;

}

 

if (C <=0) {

cout << “Water would freeze at this temperature. Cold as your GF.”;

}

if (C > 0 && C < 100) {

cout << “Water neither freeze nor boil. Fresh as fuck.”;

}

 

cout << endl;

return 0;

}

 

CC BY 4.0 #WSQ05 Temperature by Mauricio Cooper is licensed under a Creative Commons Attribution 4.0 International License.

Comments are closed.