Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Operators

Exercise 1

  1. Create number a = 10
  2. Print the number.

Exercise 2

  1. Multiply the number by 2.
  2. Print the result.

Exercise 3

  1. Create a second number b = 5
  2. Multiply a and b
  3. Print the result.

Exercise 4

The Celsius Fahrenheit converter.

  1. Create a variable temperature as Double for the temperature in Celsius.
  2. And print the temperature in Fahrenheit.
  3. Look on the internet for the formula.
  4. Use 0.0, 37.0 -40.0 as test examples

Exercise 5

Create a 'kilometre to miles' converter.