/ Published in: C++
Expand |
Embed | Plain Text
#include <iostream> #include <fstream> #include <cstdlib> using namespace std; int const CSIZE = 5; int const RSIZE = 5; int main() { char board[CSIZE][RSIZE]; for(int i = 0; i < CSIZE - 1; i++) for(int j = 0; j < RSIZE - 1; j++) board[i][j] = '*'; for(int i = 0; i < RSIZE; i++) { cout << board[0][i]; for(int j = 0; j < CSIZE; j++) cout << board[j][0]; cout << endl; } return 0; }
You need to login to post a comment.
