字典翻译 问答 小学 英语 求解算法打出每一行的数字Enterthenumberofrows:712345678910111213141516171819202122232425262728Youcanusethefollowingcommands:Print‘n’–printsthecontentofvariable‘n’.‘n’canbeanyv
问题标题:
求解算法打出每一行的数字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
点击显示
英语推荐
热门英语推荐
  • 语文
  • 数学
  • 英语
  • 科学
  • 作文