问题标题:
求解算法打出每一行的数字Enterthenumberofrows:712345678910111213141516171819202122232425262728Youcanusethefollowingcommands:Print‘n’–printsthecontentofvariable‘n’.‘n’canbeanyv
问题描述:

求解算法打出每一行的数字

Enterthenumberofrows:7

1

23

456

78910

1112131415

161718192021

22232425262728

Youcanusethefollowingcommands:

Print‘n’–printsthecontentofvariable‘n’.‘n’canbeanyvariable.

PrintSpace–printsonespaceatatime.

GoToNextLine–allowsyoutogotothenexttime.

Youralgorithmwillneedtohaveforloops,onenestedintoanother

尚向东回答:
  for(inti=1;i
查看更多
英语推荐
热门英语推荐