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
#include <cstdlib>
#include <iostream>
usingnamespace 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.