1 min read
Before you start reading my post, please click this link to listen to the correct music for this: Link to video
#WSQ05 #Temperature #TC1017 #CCourses
Code down below:
//Mauricio Cooper A01630042
#include <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;
}
#WSQ05 Temperature by Mauricio Cooper is licensed under a Creative Commons Attribution 4.0 International License.