Skip to content

Instantly share code, notes, and snippets.

@msymt
Last active March 27, 2022 12:56
Show Gist options
  • Save msymt/2e7b9ba79bf14df94038c51a90a3b76b to your computer and use it in GitHub Desktop.
Save msymt/2e7b9ba79bf14df94038c51a90a3b76b to your computer and use it in GitHub Desktop.
シャニマス 冬優子の思い出演出中に表れたソースコード
#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