Created
July 25, 2018 22:52
-
-
Save toshvelaga/9c2d2b02fa4c859e8959095b974c8b5f to your computer and use it in GitHub Desktop.
CS50 Mario
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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