4_6.cpp
资源名称:c.rar [点击查看]
上传用户:puke2000
上传日期:2022-07-25
资源大小:912k
文件大小:0k
源码类别:

C#编程

开发平台:

Visual C++

  1. #include <iostream.h>
  2. void main()
  3. {
  4.   int peachs=1;
  5.   for(int i=1; i<10; i++)
  6.     peachs=(peachs+1)*2;
  7.   cout <<"第一天共摘下" <<peachs <<"个桃子.n";
  8. }