Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * @author Otto Sabart <seberm[at]gmail[dot]com>
- * @file main.cpp
- */
- #include <iostream>
- using namespace std;
- int main(int argc, char *argv[]) {
- int startProm = 5;
- for (int i = 0; i <= startProm; i++) {
- for (int j = 0; j < i; j++)
- cout << "1";
- for (int x = 0; x < startProm - i; x++)
- cout << "0";
- cout << "\n";
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment