Skip to content

Commit

Permalink
fix: improve formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Mati365 committed Feb 11, 2024
1 parent 12084d1 commit 63d72fe
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,15 @@ int main() {
kernel_screen_clear();
for (i = 0; i < rows; i++) {
for (space = 1; space <= rows - i; space++)
printf(" ");
for (space = 1; space <= rows - i; space++) {
printf(" ");
}
for (j = 0; j <= i; j++) {
if (j == 0 || i == 0) {
coef = 1;
} else {
coef = coef * (i - j + 1) / j;
coef = coef * (i - j + 1) / j;
}
printf("%4d", coef);
Expand Down

0 comments on commit 63d72fe

Please sign in to comment.