divider

Objective

Create a program that displays a table of values showing the conversion from kilograms to pounds.

Skills to Practice

  • icon Using loops to generate tabular data
divider

Tasks

  • icon Create a new project named application-2-7
  • icon Complete the following tasks:
    • icon Write a loop that outputs the following table in the sample output.
    • icon Formula: 1kg = 2.2lbs, or lbs = kg * 2.2.
  • icon Note that there is no user input for this program. However, you may modify the program by prompting the user for a row count.
  • icon Ensure the output is neatly formatted into two columns.
divider

Sample Output

Sample Output
Kilograms Pounds
1 2.2
3 6.6
...
197 433.4
199 437.8

Begin Challenge