C讲义2010-1-20100308.pptVIP

  • 2
  • 0
  • 约1.39万字
  • 约 63页
  • 2018-05-18 发布于四川
  • 举报
* Programming basics Ex: Input 10 numbers , find the maximum 1 Input a number , save it to variable max; 2 Set another variable i as a counter , assign 1 to i; 3 Input a new number , save it to variable x ; 4 Compare the value of x and max; if xmax,assign x to max; otherwise keep the both value. 5 i increment 1 , i+1?i ; 6 if i9,go to step3,go on otherwise output max which is the maximum Chapter one programming design Program modules: identify the program’s processing steps. Flow chart(流程图) Pseudocode(伪代码) Computer language Plan a solution Using structured

文档评论(0)

1亿VIP精品文档

相关文档