
Untitled
Guest 14 13th Mar, 2025
#include <iostream>
using namespace std;
const int rows = 10;
const int cols = 10;
void printTable(int table[rows][cols]) {
for (int i = 0; i < rows; ++i) {
for (int j = 0; j < cols; ++j) {
cout << table[i][j] << " ";
}
cout << endl;
}
}
int main() {
int table[rows][cols] = {
{1, 0, 0, 0, 0, 0, 0, 0, 0, 1},
{0, 1, 0, 0, 0, 1, 0, 0, 0, 0},
{0, 0, 1, 0, 1, 0, 0, 0, 0, 0},
{0, 1, 0, 0, 0, 0, 1, 0, 0, 0},
{0, 0, 0, 1, 0, 0, 0, 0, 1, 0},
{0, 0, 0, 0, 1, 0, 0, 1, 0, 0},
{0, 0, 1, 0, 0, 1, 0, 0, 0, 1},
{1, 0, 0, 0, 0, 0, 1, 0, 0, 0},
{0, 1, 0, 0, 1, 0, 0, 0, 1, 0},
{1, 0, 0, 0, 0, 0, 0, 0, 0, 1}
};
printTable(table);
return 0;
}
To share this paste please copy this url and send to your friends
RAW Paste Data