Post History
C (compliant), 106 bytes char r,i,s[80];void f(int n){memset(s,32,79);for(;r<n;puts(s),r++)for(i=0;i++<n*2;s[n-r-1]=47,s[n+r]=92);} Try it online! Standard C compliant function solutio...
Answer
#1: Initial revision
# C (compliant), 106 bytes <!-- language-all: lang-c --> char r,i,s[80];void f(int n){memset(s,32,79);for(;r<n;puts(s),r++)for(i=0;i++<n*2;s[n-r-1]=47,s[n+r]=92);} [Try it online!][TIO-kjjwvyr0] [C (gcc)]: https://gcc.gnu.org/ [TIO-kjjwvyr0]: https://tio.run/##Tc1NDoIwEEDhfU/RxE1ri0E0QTLgRQgLUn6cRAYzLW4IZ6@wc/st3nPJ6Fw8Ibn30vWy9KHD@fJ6in9ipHG36F4tS7Zoff1IG/jO2MlBIQVJep36yfdBeXvLbF5oGGZWwCXBZwleeW3ZGH0gVimgMSWdM/A1JZxcm@qe71Ey3FRFpmGLR3RqkZQWq5D7JdcgpdjiDw "C (gcc) – Try It Online" Standard C compliant function solution.