摘要: * *** ***** ************************************ ******* ***** *** *output like this~when use diamond(7,'*');code:int diamond(int i,char x){ if(i%2 == 0) { printf("error"); return 0; } for(int t=1; t<=(i-1)/2+1; t++) { int blank = (i-2*(t-1))/2; while(blank > 0) { printf(" "); blank--; } 阅读全文
posted @ 2011-02-11 16:24 zaric 阅读(128) 评论(0) 推荐(0) 编辑