(C++知识实例)_2 C++for循环

一、for循环打印字符串 // for循环打印字符串 #include <iostream> using namespace std; int main() { for(int i=1;i<=3;i++) // 循环条件 { cout << "Hello" << endl;// 循环体 } return 0; } 二、for循环倒计时 (
相关文章
相关标签/搜索