O OXO OXOXO OXOXOXO OOOOOOOOO
#include int main() { int i,j,h ; scanf("%d",&h); for(i=1;i=h-(i-1)&& j<=h+(i-1)) printf("O") ; else printf(" ") ; } printf("\n") ; } return 0; }
print(int index) { switch( index ) { case 0: print(" "); break; // ... } }
printf
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)