摘要:        
#include "iostream.h"void main(){ int a,b,c,d,i,f; cout<<"请输入一个奇数:"; cin>>a; b=int(a/2)+1; for(i=1;i<=b;i++) { for (c=1;c<=b-i;c++) { cout<<" "; } for (c=1;c<=i*2-1;c++) { cout<<"*"; } cout<<endl; } f=(a-b)*2-1; for (d=1;    阅读全文
        
            posted @ 2011-10-23 18:32
奇奇博客
阅读(231)
评论(0)
推荐(0)
        
        
                    
                
浙公网安备 33010602011771号