include ltiostreamusing namespace stdint mainint argc, char*argv cout ltlt quot***quot ltlt endl ltlt quot * *quot ltlt endl ltlt quot * *quot ltlt endl ltlt quot * *quot ltlt endl lt。
int i, j, k, nprintfquot请输入四边形的宽度quotscanfquot%dquot, nfori = 0 i lt n ++i forj = 0 j lt= i ++j printSpace fork = n k 0 k printStar。
include ltiostreamusing namespace stdmainint i,j,nn=5for i=0iltni++for j=0jlt=ij++ cout ltlt quot quot for j=ni1j=0j cout ltlt quot quotcout ltlt quot***quot ltlt。
已成功 include quotstdafxhquotint mainint argc, char* argvint i,j,lforj=0jlt5j++fori=0iltji++printfquot quotforl=0llt5l++printfquot* quotprintfquot\nquot。