initial
This commit is contained in:
commit
2802401eee
79 changed files with 2650 additions and 0 deletions
21
1sem/adaptation courses/7/21.cpp
Normal file
21
1sem/adaptation courses/7/21.cpp
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
// ac_7_21.cpp
|
||||
// Горбацевич Андрей
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
|
||||
int main() {
|
||||
int N;
|
||||
cout << "N >>>";
|
||||
cin >> N;
|
||||
int *A = new int[N];
|
||||
for (int i = 0; i < N; i++) {
|
||||
cout << "A[" << i << "] >>>";
|
||||
cin >> *(A + i);
|
||||
}
|
||||
|
||||
cout << "A = ";
|
||||
for (int i = 0; i < N; i++) {
|
||||
cout << *(A + i) << " ";
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue