You are viewing a single comment's thread. Return to all comments →
I created a very simple version in C:
void staircase(int n) { /* * Write your code here. */ char *str= malloc(n+1); memset(str, (int)'#', n); str[n] = '\0'; for(int i = 0; i < n; i++) { printf("%*.*s\n",n,i+1,str); } }
Seems like cookies are disabled on this browser, please enable them to open this website
Staircase
You are viewing a single comment's thread. Return to all comments →
I created a very simple version in C: