vault backup: 2024-10-08 22:11:53

This commit is contained in:
zleyyij 2024-10-08 22:11:53 -06:00
parent 4b75ea7a74
commit eb0a5d9264
2 changed files with 15 additions and 2 deletions

2
.obsidian/app.json vendored
View File

@ -2,7 +2,7 @@
"vimMode": true, "vimMode": true,
"promptDelete": false, "promptDelete": false,
"pdfExportSettings": { "pdfExportSettings": {
"includeName": false, "includeName": true,
"pageSize": "Letter", "pageSize": "Letter",
"landscape": false, "landscape": false,
"margin": "0", "margin": "0",

View File

@ -53,4 +53,17 @@ char chess_board[8][8] = {
``` ```
> 11. Write a program fragment that declares an 8x8 `char` array named `checker_board` and then uses a loop to store the following data into the array (one character per array element). > 11. Write a program fragment that declares an 8x8 `char` array named `checker_board` and then uses a loop to store the following data into the array (one character per array element).
```c
char checker_board[8][8];
for (int row = 0; row < 8; row++) {
for (int column = 0; column < 8; column++) {
if ((column + row) % 2 == 0) {
checker_board[row][column] = 'B';
} else {
checker_board[row][column] = 'R';
}
}
}
```