#include <iostream>
using namespace std;
int main (void)
{
    int target = 20;  // The target value
    int counter = 0;  // Counter

    while (counter < target) {  //This while will terminate when counter reaches target
        counter++;  // Iterate counter
        cout << counter << endl;  //Note, that this will also execute when target is reached
    }

    return 0;
}