Write a program (lab3.cpp) that finds the temperature that is the same in both Celsius andFahrenheit. The formula to convert from Celsius to Fahrenheit is:??ℎ???ℎ??? = (9 ∗ ???????/5)+32Your program should create two integer variables for the temperature in Celsius and Fahrenheit. Initialize the temperature to 100 degree Celsius. In a loop, decrement the Celsiusvalue and compute the corresponding temperature in Fahrenheit until the two values are the same. An example run of this program is attached as a photo
1. What is the condition that will end the loop?2. Should you check that condition at the beginning or end of the loop?3. What kind of loop is best for that kind of condition checking?
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here