Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
2
Posts with Downvotes
1
Downvoting Members
2
1 Commented Post
0 Endorsements
Ranked #107.79K
~137 People Reached
Favorite Forums
Favorite Tags
c++ x 1

1 Posted Topic

Member Avatar for samsons17

#include <iostream> using namespace std; int main(){ const int COLUMNS=5; int number[5][COLUMNS]; for(int i=0; i<5; i++) { for(int j=0; j<COLUMNS; j++) { if(j==0||j%2==0) { cout<<"1"; } else { cout<<"0"; } cout<<endl; } }

Member Avatar for Fbody
0
137

The End.