Files
learning/Programming Notes/cpp/Циклы/while.cpp
T
oleg20111511 f235a35ebb Reorganize
2026-03-02 19:15:17 +02:00

27 lines
318 B
C++
Executable File

#include <iostream>
using namespace std;
int main (){
/* Синтаксис:
while (condition) {
statement1;
statement2;
...
}
или
do {
statement1;
statement2;
...
} while (condition);
*/
int i = 0;
while (i < 5) {
cout << "Hello world " << i << "! ";
i++;
}
cout << endl;
return 0;
}