c2
This commit is contained in:
parent
0d75f30a49
commit
4744ebb565
69 changed files with 7 additions and 5 deletions
|
|
@ -1,20 +0,0 @@
|
|||
// pb_5_0_60.cpp
|
||||
// Горбацевич Андрей
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
|
||||
int main() {
|
||||
int N;
|
||||
cout << "N >>";
|
||||
cin >> N;
|
||||
cout << "With for(...)>>>" << endl;
|
||||
for (int i = 1; i <= N; i++) cout << i << endl;
|
||||
cout << endl;
|
||||
cout << "With while(...)>>>" << endl;
|
||||
int wi = 1;
|
||||
while (wi <= N) cout << wi++ << endl;
|
||||
cout << endl;
|
||||
cout << "With do{...}while(...)>>>" << endl;
|
||||
int dwi = 1;
|
||||
do { cout << dwi++ << endl; } while (dwi <= N);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue