0% found this document useful (0 votes)
21 views1 page

Q2

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views1 page

Q2

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Quiz 2

1) Write a program which prompts the user for a Celsius temperature, convert the temperature
to
Fahrenheit, and print out the converted temperature.
Formula : (°C × 9/5) + 32 = °F
## Input
```
Enter Temperature in Celsius: 10
```
## Output
```
10 Celsius = 50 Fahrenheit

2)Write a program that takes an integer number from console and checks whether if a
number is an odd or even.
Example:
Input : 100
Output : Even
Hint:
Use modulus operator that we have learnt in previous section

3)Body Mass Index (BMI) Calculator


Write a program that calculates the Body Mass Index (BMI) based on a user's
weight and height andinterprets it based BMI graph below. It should tell them the interpretation of
their BMI based on the BMI value.

You might also like