Initial commit

This commit is contained in:
2022-04-28 04:34:45 +03:00
commit 4c0cdb2f71
30 changed files with 1218 additions and 0 deletions

27
cpp/Циклы/while.cpp Normal file
View File

@@ -0,0 +1,27 @@
#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;
}