#include <stdio.h> #include <cs0.h> int main(void) 5 { int h; int i, j; do { h = get_int("How big do you want?: "); } while (h < 1 || h > 8); for (i = 0; i <= h; i++) { for(j = 0; j <= ; j++) 18 { if(j <= 8 - i || j >= 11 + i || j==9 || j ==10) printf(" "); else printf("#"); } printf("\n"); }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter