Skip to content

Instantly share code, notes, and snippets.

@toshvelaga
Created July 25, 2018 22:52
Show Gist options
  • Save toshvelaga/9c2d2b02fa4c859e8959095b974c8b5f to your computer and use it in GitHub Desktop.
Save toshvelaga/9c2d2b02fa4c859e8959095b974c8b5f to your computer and use it in GitHub Desktop.
CS50 Mario
/* CS50 Mario. This will work on any online compiler. You may need to make a few changes to get credit from Harvard.
Feel free to hmu if you have any questions at s.velaga@uky.edu */
#include <stdio.h>
int main()
{
int a, b, c;
for (a=1;a<=8;a++)
{
for (b=a;b<8;b++)
{
printf(" ");
}
for (c=1;c<=a;c++)
{
printf("#");
}
printf("\n");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment