7章2节while循环

来源:互联网 发布:罗马圣保罗大教堂知乎 编辑:程序博客网 时间:2024/05/18 20:35

#include <iostream>

int main ()

{
 
using namespace std;
int counter = 100;
while (counter < 110)
{
 counter++;

 cout << "counter is " << counter << endl;

}
cout << "complete while loop the counter is " << counter << endl;/

return 0;
}

原创粉丝点击