1234567891011121314
// Example program #include <iostream> int main() { for (int y = 0; y < 4; y++) { for (int x = 0; x < 5; x++) { std::cout << ((x - y < 1) ? 0 : 1); } std::cout << "\n"; } }