...

/

Exercises on Operators and Expression

Exercises on Operators and Expression

Apply what you’ve learned so far by getting hands-on practice.

We'll cover the following...

For the following questions, do try attempting the problems by yourself before looking at the solutions.

Please ignore the surrounding code that may be unfamiliar at this point. This will become clear as we progress.

Question 1

Write a program that converts temperature in degrees Fahrenheit (oF) to degrees Celsius (oC) using the following formula:

C=(F32)1.8C=\frac{(F-32)}{1.8} ...