You are on page 1of 1

1. Write a program to enter the base and height of a tringle and find and print the area.

Input & Storage Processing Output

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

Input & Storage Processing Output

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.

Input & Storage Processing Output

You might also like