#include <stdio.h> int main( void ) { const unsigned n = 5; for( unsigned i=0; i!=n*n+n; ++i ) putchar( " *\n"[(i/(n+1)<=i%(n+1)) + ((i+1)%(n+1)==0)] ); return 0; }
#include <stdio.h> main() { for (int i=5; i>0; i--) printf("%*.*s\n", 5,i,"*****"); }