个人理解:for循环,顾名思义,就是在每种特定条件下,按照要求执行每个阶段,也指着在某种情况下的赋值,反反复复的根据
编程来输入。当在一些特定条件下,程序中的数值也会发生相应的改变,这就得看执行的口令的要求而变化数值,最后
到达所给的特定条件,就会根据相对应的执行数据赋予一个值,也就是赋值,然后输出数值。从而达到自己想要实现的
功能,体现出循环的含义。
举例子:首先得确定一个对象,设置一个赋值sum,初始为0,打出特定条件,接着设一个for(例:i=1;i<=100;i++)循环,这
个循环的设置也就是说只要小于等于100就继续执行,一次一次的累加,大于100以后就退出循环,直接输出结果sum。
新手上路:请大家多多指教,理解错误的地方指点我一下,谢谢!