Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
780 B
2
Indexable
Never
#include <iostream>
using namespace std;

void game_board();


int main()
{
    game_board();
    
    return 0;
}

void game_board()
{
    cout << "   0|1|2|3|4|5|6|7|8|9" << endl << endl;
    //cout<< "0|"<<endl<<"1|"<<endl<<"2|"<<endl<<"3|"<<endl<<"4|"<<endl<<"5|"<<endl<<"6|"<<endl<<"7|"<<endl<<"8|"<<endl<<9|" << endl << endl;
    char matrix[10][10];
    cout << "0|\n1|\n2|\n3|\n4|\n5|\n6|\n7|\n8|\n9|" << endl << endl;
    for (int i = 0; i < 10; i++)
    {
        for (int j = 0; j < 10; j++)
        {
            matrix[i][j] = '*';
        }
    }

    for (int i = 0; i < 10; i++)
    {
        for (int j = 0; j < 10; j++)
        {
            std::cout << matrix[i][j] << "|";
        }
        std::cout << std::endl;
    }

}