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
+34
View File
@@ -0,0 +1,34 @@
// Return value
#include <cs50.h>
#include <stdio.h>
int get_positive_int(void);
void meow(int n);
int main(void)
{
int n = get_positive_int();
meow(n);
}
// Get number of meows
int get_positive_int(void)
{
int n;
do
{
n = get_int("Number: ");
}
while (n < 1);
return n;
}
// Meow some number of times
void meow(int n)
{
for (int i = 0; i < n; i++)
{
printf("meow\n");
}
}