The problem
In this exercise, write a program that displays the following table converting kilograms to pounds.
Breaking it down
Using an IntStream.rangeClosed
will create a range of numbers 1 to 200. Next calling Stream.forEach
will output table and conversion.
Output