← Back
Code Challenge 2.11 - Kilograms to Pounds Table
Objective
Create a program that displays a table of values showing the conversion from kilograms to pounds.
Skills to Practice
- Using loops (preferably
for
loops)
- Performing calculations within a loop
Challenge Tasks
- Create a console project named Challenge 2-11.
- Write a loop that outputs the following table in the sample output.
- Remember that 1 kilogram is equal to 2.2 pounds.
- Ensure the output is neatly formatted into two columns.
Sample Output
Kilograms Pounds
1 2.2
3 6.6
...
197 433.4
199 437.8