Last active
March 27, 2022 12:56
-
-
Save msymt/2e7b9ba79bf14df94038c51a90a3b76b to your computer and use it in GitHub Desktop.
シャニマス 冬優子の思い出演出中に表れたソースコード
This file contains hidden or 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
#include<stdio.h> | |
int main(void) { | |
for(int i = 0; i < 8; i++) { | |
for(int x = 0; x < 20; x++) { | |
int d = x - 10; | |
if (d <= 0) { | |
d *= -1; | |
} | |
char c = ' '; | |
if(d <= i) { | |
c = '*'; | |
} | |
printf("%c", c); | |
} | |
printf("\n"); | |
} | |
for(int i = 0;i < 2; i++) { | |
for(int x = 0; x < 18; x++) { | |
char c = ' '; | |
if((x == 10) || (x == 11)) { | |
c = '*'; | |
} | |
printf("%c", c); | |
} | |
printf("\n"); | |
} | |
printf("Merry Christmas!\n"); | |
return 0; | |
} | |
/* | |
* | |
*** | |
***** | |
******* | |
********* | |
*********** | |
************* | |
*************** | |
** | |
** | |
Merry Christmas! | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment