C++学习第二十一篇

/*
* 注意:for循环中的表达式,要用分号隔开
* 总结:while,do...while,for都是开发中常用的循环语句,for循环结构比较清晰,比较常用
*/
#include<iostream>
using namespace std;
int main()
{	 
	for (int i = 0;i < 10;i++)
	{
		cout << i << endl;
	}
	system("pause");
	return 0;
}

猜你喜欢

转载自blog.csdn.net/weixin_47358937/article/details/121257549