Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Ask questions, find answers and collaborate at work with Stack Overflow for Teams.
Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
#C, 116 94 89 bytes c,d;f(a){for(d=a;a--;puts(" || ||"))for(c=-1;c<d;)printf(a-c++?c?" ":"|| || ":"//");}
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 9489 bytes c,d;f(a){for(d=a;a--;puts(" || ||"))for(c=!printf("|| || ");c<d;-1;c<d;)printf(a-c++?c?" ":"|| || ":"//");}
#C, 116 94 bytes c,d;f(a){for(d=a;a--;puts(" || ||"))for(c=!printf("|| || ");c<d;)printf(a-c++?" ":"//");}
#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++?" ":"//");}
#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++?" ":"//");}