Professional Documents
Culture Documents
Example To Input-Process-Output - NEW
Example To Input-Process-Output - NEW
2. Write a program to read the temperature in degrees Celsius (oC) and convert it to degrees
Fahrenheit (F) where F = C*(9/5)+32. Output the temperature in degrees Celsius and
Fahrenheit
3. Write a program to read the answer to the sum 10 * 12 (The answer is 120) Return the comment
“Correct” if the answer is right and “Incorrect” if the answer is wrong.
Input & Storage Processing Output
4. Write a program to input a number N. If the number is greater than 50 subtract 10 from the
number, otherwise multiply the number by 2 and add 5. Print the number and the result.