fork download
  1. #define p putchar
  2. i,j;g(a,c,e){p(c);for(i=2;i++<a;)p(e);p(c);p(10);}h(b,d){for(i=0;i++<b;){p(d);p(10);}}f(a,b,c,d,e){g(a,c,e);h(b,d);g(a,c,e);h(b,d);g(a,c,e);}
  3. main(){f(7,2,'+','|','-');f(9,4,'^','$','!');}
Success #stdin #stdout 0s 2168KB
stdin
Standard input is empty
stdout
+-----+
|
|
+-----+
|
|
+-----+
^!!!!!!!^
$
$
$
$
^!!!!!!!^
$
$
$
$
^!!!!!!!^