#include <stdio.h> int main( void ) { const char s[] = "*********"; if( sizeof(s) > 1 ) { const size_t n = sizeof(s)/2*2-1; for( size_t i=0; i!=n; ++i ) { const size_t m = i<n/2 ? n/2-i : i-n/2; printf( "%*.*s\n", n-m, n-2*m, s ); } } }