标签:blog io for 2014 amp log file c
#include<stdio.h> void diaoyong(int q) { int o,i,p; p=q; i=0; while(i<p) { printf("* "); i++; } printf("\n"); for(i=0;i<p-2;i++) { printf("*"); for(o=0;o<2*p-3;o++) printf(" "); printf("*\n"); } i=0; while(i<p) { printf("* "); i++; } } void main() { int b; printf("输入方框的边"); scanf("%d",&b); diaoyong(b); }
标签:blog io for 2014 amp log file c
原文地址:http://blog.csdn.net/u013116579/article/details/38340137