Skip to content
Snippets Groups Projects
Commit 08bf0717 authored by Nicolai Steenfeldt-Foss's avatar Nicolai Steenfeldt-Foss
Browse files

week1

parent 3a4b8749
No related branches found
No related tags found
No related merge requests found
#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
#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
before = input("before: ")
print("After ", end="")
print(before.upper())
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment