How do understand Zybooks 4.6.1: For loops

  c++, for-loop

Write code that prints: userNum … 2 1
Print a newline after each number.

Ex: If the input is:

3

the output is:

3
2
1

enter image description here

Source: Windows Questions C++

LEAVE A COMMENT