第十五日总结

来源:互联网 发布:网易smtp端口 编辑:程序博客网 时间:2024/04/25 23:51

今天我跟着课本写了一个do...while语句的程序,了解了程序的意思了。

#include <iostream>
using namespace std;
 int main()
{
 int i = 1, s = 0;
  do{
   s += i;
   i++;
  } while (i <= 100);
  cout << s << endl;
  system("PAUSE ");
}


明日计划:加快进度,继续往后学习。

原创粉丝点击