Happy About the progress

This commit is contained in:
2026-05-28 10:16:10 +00:00
commit 79415e38db
92 changed files with 1326 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
#include <cs50.h>
#include <stdio.h>
void print_row(int bricks);
int main(void)
{
// Prompt user for heing (int)
int height = get_int("Height: ");
// Print Payramid of that height
for (int i = 0; i <= height; i++)
{
print_row(i + 1);
//Print row based on height
printf("#");
printf("\n");
}
}
// Given a how many a # to print out, print that number of bricks
void print_row(int bricks)
{
for (int i = 0; i< bricks; i++)
{
printf("#");
}
printf("\n");
}