diff --git a/pset1/mario.c b/pset1/mario.c new file mode 100644 index 0000000000000000000000000000000000000000..ea9ff90ae458782fa265bdf6e9c07b1e5ed62fc2 --- /dev/null +++ b/pset1/mario.c @@ -0,0 +1,28 @@ +#include <stdio.h> +#include <cs50.h> + +int main(void) +{ + int n; + + do + { + n = get_int("size: "); + } + + while(n < 1); + + + + for(int i = 0; i < n; i++) + { + for(int j = 0; j < n; j++) + { + printf("#"); + } + + printf("\n"); + + } + +} \ No newline at end of file diff --git a/pset1/mario2.c b/pset1/mario2.c new file mode 100644 index 0000000000000000000000000000000000000000..d5ec5c0ac72bd87ec90343ede723dcd9e05fd2c1 --- /dev/null +++ b/pset1/mario2.c @@ -0,0 +1,26 @@ +#include <cs50.h> +#include <stdio.h> + + +int main(void) +{ + //get size + int n = get_size(); + + + //make grid + print_grid(n); +} + +int get_size(void) +{ + int n; + + do + { + int n = get_int("size: "); + } + + while (n < 1); + return n; +} \ No newline at end of file diff --git a/pset1/uppercase.py b/pset1/uppercase.py new file mode 100644 index 0000000000000000000000000000000000000000..9d68fa25a68ee333e05c57c94a1897b6ea0d985f --- /dev/null +++ b/pset1/uppercase.py @@ -0,0 +1,3 @@ +before = input("before: ") +print("After ", end="") +print(before.upper())