← Back

Code Challenge 3 - Miles to Kilometers Calculator


Unit conversion programs are great for practicing elementary programming concepts. This first calculator program is converting distances from miles to kilometers.

Skills to Practice

Challenge Tasks

  1. Create a console project named CodeChallenge3MiToKm.
  2. Complete the folowing tasks:
    1. Prompt the user to enter a value to represent miles.
    2. Convert the miles value to kilometers. If you don’t know the math formula, search it!
    3. Output a message to display the original miles unit and the equivalent value in kilometers.

Sample Output