Skip to content

Latest commit

 

History

History
16 lines (14 loc) · 335 Bytes

File metadata and controls

16 lines (14 loc) · 335 Bytes
#include <iostream>
using std::cin; using std::cout; using std::endl; using std::cerr;
#include <string>
using std::string;

int main() {
    int i = 10;
    auto isZ = [&]() -> bool{ return i != 0 ? --i, false : true;};
    while (!isZ())
        cout << i << " ";
    cout << endl;
    cout <<isZ()<< " " << i << endl;
}