Skip to main content
Commonmark migration
Source Link

#C, 116 94 89 bytes c,d;f(a){for(d=a;a--;puts(" || ||"))for(c=-1;c<d;)printf(a-c++?c?" ":"|| || ":"//");}

C, 116 94 89 bytes

c,d;f(a){for(d=a;a--;puts("  ||  ||"))for(c=-1;c<d;)printf(a-c++?c?" ":"||  ||  ":"//");}

Try it out on Ideone

#C, 116 94 89 bytes c,d;f(a){for(d=a;a--;puts(" || ||"))for(c=-1;c<d;)printf(a-c++?c?" ":"|| || ":"//");}

Try it out on Ideone

C, 116 94 89 bytes

c,d;f(a){for(d=a;a--;puts("  ||  ||"))for(c=-1;c<d;)printf(a-c++?c?" ":"||  ||  ":"//");}

Try it out on Ideone

deleted 1 character in body
Source Link
ceilingcat
  • 7.7k
  • 2
  • 30
  • 30

#C, 116 94 9489 bytes c,d;f(a){for(d=a;a--;puts(" || ||"))for(c=!printf("|| || ");c<d;-1;c<d;)printf(a-c++?c?" ":"|| || ":"//");}

Try it out on Ideone

#C, 116 94 bytes c,d;f(a){for(d=a;a--;puts(" || ||"))for(c=!printf("|| || ");c<d;)printf(a-c++?" ":"//");}

Try it out on Ideone

#C, 116 94 89 bytes c,d;f(a){for(d=a;a--;puts(" || ||"))for(c=-1;c<d;)printf(a-c++?c?" ":"|| || ":"//");}

Try it out on Ideone

turned standalone program into function
Source Link
ceilingcat
  • 7.7k
  • 2
  • 30
  • 30

#C, 116116 94 bytes c,d;maind;f(a,b)char**b;{for(a=d=*b[1]-48;ad=a;a--;puts(" || ||"))for(c=!printf("|| || ");c<d;)printf(a-c++?" ":"//");}

Try it out on Ideone

#C, 116 bytes c,d;main(a,b)char**b;{for(a=d=*b[1]-48;a--;puts(" || ||"))for(c=!printf("|| || ");c<d;)printf(a-c++?" ":"//");}

#C, 116 94 bytes c,d;f(a){for(d=a;a--;puts(" || ||"))for(c=!printf("|| || ");c<d;)printf(a-c++?" ":"//");}

Try it out on Ideone

Source Link
ceilingcat
  • 7.7k
  • 2
  • 30
  • 30
Loading