资源描述:
《C语言图形数组答案》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、#includeh>main()main()voidmain(){intij9k;{intiJ,k;{intiJ,k;for(i=0;i<4;i++)for(i=0;i<4;i++)for(i=0;i<=4;i++){for(j=0;j<=16-2*i;j++){for0=0;j<=10+2*i;j++){for(j=0;j<=10+i;j++)printf(HH);printf(H");printf(H”);for(k=1;k<=2*i+l;k++)for(k=l;k<=7-2*i;k
2、++)for(k=l;k<=9-2*i;k++)printf(H%2dH4+l);printf(H%2dn,k);printf(H%2cH,,D,-i);printf(,,n);printf(nH);printf(HH);}}}}数组图形题答案:}}l.#includeHstdio.h*'5.#include"stdio.h"9.#include"stdio.h''main()main()main(){intij,k;{intij,k;{intkj,k;for(i=0;i<4;i++)fo
3、r(i=0;i<4;i++)for(i=0;i<4;i++){for(j=0;j<=10+i;j++){for(j=0;j<=16-2*i;j++){for(j=0;j<=10;j++)printf(HH);printf(Mn);printf(HH);for(k=l;k<=7-2*i;k++)for(k=1;k<=2*i+l;k++)for(k=l;k<=5-i;k++)printf(,,%cM,,D,-i);printf(M%2c,,;A,+k-l);printf(H%2c',;a,+k-l);pr
4、intf(Hn);}}printf(nH);}}2.#include"stdio.h”}6.#include"stdio.h*1}10.#include"stdio.h"main()main()main(){intij,k;{intij,k;{intij,k;for(i=0;i<4;i++)for(i=0;i<4;i++)for(i=0;i<3;i++){for(j=0;j<=10+i;j++){for(j=0;j<=16-2*i;j++){for(j=0;j<=10;j++)printf(H
5、H);printf(M”);pnntf(H”);for(k=l;k<=7-2*i;k++)for(k=l;k<=2*i+l;k++)for(k=l;k<=4;k++)printf(H%dH,4-i);printf(M%2dn,k);printf(M%4dH,4*i+k);printf(nn);}printf(HH);}printf(HH);}}3・#include"stdio.h*'}7.#include"stdio.h"}ll.#include"stdio.h"main()main()m
6、ain(){intij,k;{intij,k;{intij,k;for(i=0;i<4;i++)for(i=0;i<4;i++)for(i=0;i<3;i++){for(j=0;j<=10;j++){for(j=0;j<=10+2*i;j++){for(j=0;j<=10;j++)printf(HH);printf(H,r);printf(Hn);for(k=l;k<=7-2*i;k++)for(k=l;k<=7-2*i;k++)for(k=l;k<=4;k++)printfC^c^/m'+k-l);
7、printf(M%2cH;a,+k-l);printf(M%-4dH,4*i+k);prinlfU;}pnntf(nH);}printf(MH);}}4.#include''stdio.h"}8.#include''stdio.h"}12.#include"stdio.h”main(){intij,k;for(i=0;i<5;i++){for(j=0;j<=10-i;j++)printf(HH);for(k=l;k<=2*i+l;k++)printf(H*H);printf(,,H);}f
8、or(i=3;i>=0;i—){for(j=();j