国外C语言程序设计英文lecture.ppt

Computer programming;Lecture 3: Outline;Executing a program;Structure of a C program;Controlling the program flow;Program Looping;The need for program looping;Example – 200th triangular number;Example - for;The for statement;The for statement;How for works;Infinite loops;Relational operators;Example – for with a body of 2 ;Increment operator;Program input;Nested loops;for loop variants;The while statement;The while statement;Example:;Example - while;Example:;Example - while;Example – while not quite OK !;The do statement;Example – do while;Which loop to choose ?;Example: while vs for;The break

文档评论(0)

1亿VIP精品文档

相关文档