int main(int argc, char **argv) { int i; cout << "Input the start number: "; cin >> i; auto if_equal_zero = [&]()-> bool{ if (i == 0) return true; else while (i > 0) --i; return false; }; cout << (([&]()-> bool{ if (i == 0) return true; else while (i > 0) --i; return false; })()? "The number equal 0" : "The number is not equal 0") << endl; cout << endl; return 0; }