#include <iostream> using namespace std; int main() { int i = 3; int u = 0; int r = 60; auto t = [&](){return r - (i * u);}; while (t() >= 0) { cout << t() << endl << u++ << endl; } }
Standard input is empty
57 0 54 1 51 2 48 3 45 4 42 5 39 6 36 7 33 8 30 9 27 10 24 11 21 12 18 13 15 14 12 15 9 16 6 17 3 18 0 19 -3 20