WSQ 02- Temperature.

My program is: #include<iostream> using namespace std; int main() { int fahr, cel; cout<<“What is the temperature in Fahrenheit? \n”; cin>> fahr; cel=5*(fahr-32)/9; cout<<“A temperature of ” <<fahr; cout<<“\t degrees Fahrenheit is ” <<cel; cout<<“\t in Celsius. \n”; if(cel>=100) { cout<< “Water does boil at this temperature (under typical conditions) \n”; } else if(cel<100) {… Continúa leyendo WSQ 02- Temperature.

WSQ 01- Fun with numbers.

My code is: #include<iostream> using namespace std; int main() { int num1, num2, sum, dif, pro, num3, num4; cout<<“Please give me the value of the first number:\n”; cin>> num1; cout<<“Please give me the value of the second number:\n”; cin>> num2; sum=num1+num2; dif=num1-num2; pro=num1*num2; num3=(int)num1/num2; num4=num1%num2; cout<<“\nThe sum of the two numbers is: ” <<sum; cout<<“\nThe… Continúa leyendo WSQ 01- Fun with numbers.