Need to create C++ Programs

i need to bild program this is a screen or output to black screen
Useing For Loop
011111111111111
101111111111111
110111111111111
111011111111111
111101111111111
111110111111111
111111011111111
111111101111111
111111110111111
111111111011111
111111111101111
111111111110111
111111111111011
111111111111101
Good luck!
Are you inputing the numbers? Because if you are the complete code is right here:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <cstdlib>
#include <iostream>

using namespace std;

int main()
{
    int x, y, i, j ;
    cout<<"Enter two numbers." <<endl ;
    cin>> x ;
    cin>> y ;
    for (j=y; j>0; j--)  //how many rows
    {
        for (i=x; i>0; i--) //how many columns
        {
            if (i!=j)  //if when inputting characters if i is not = j we put 1
            {
               cout<<"1" ;
            }
            else  //if i=j we put a 0
            {
                cout<<"0" ;
            }
        }
        cout<<endl ;
    }
    system("PAUSE");
}

We did a program like this in class. It is a neat project.
Don't give people code. It's not going to teach them anything.
Topic archived. No new replies allowed.