Module: cycles. Loop with parameter (for)


Problem

6/17

for loop statement - Task 2

Problem

Modify the program so that it displays a table of prices 1, 2, 3, 4, ... 20 pieces of a certain type of product, if one piece of goods costs 20.40 rubles
1 - 20.4r
2 - 40.8r
...
20 - 408.0r

Hint: to print a real number x with 1 decimal place, you can write writeln(..., x:0:1, ...);