#include<cstdio>int main(){for(int r=3,c=3,x,y,q,u,h=c*4,w=h*2,i=0;i<h+1+r*8+1;i++)for(q=0;q<w+2;q++)x=q%8,y=i%8,u=(i-(h+1))%8,putchar(q==w+1?10:i<=h?!i&&q==h?42:i==h-q?47:i==q-h?92:32:!u||(u==3||u==5)&&x>2&&x<6?45:!x||u==4&&(x==3||x==5)?124:32);return 0;}
Standard input is empty
* / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ ------------------------- | | | | | | | | | --- | --- | --- | | | | | | | | | | | | --- | --- | --- | | | | | | | | | ------------------------- | | | | | | | | | --- | --- | --- | | | | | | | | | | | | --- | --- | --- | | | | | | | | | ------------------------- | | | | | | | | | --- | --- | --- | | | | | | | | | | | | --- | --- | --- | | | | | | | | | -------------------------
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!