void main int mass -3 -5 100 -99 int second_nu first_nu dop first_nu m

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
void main()
{
int mass[] = {-3, -5, 100, 5, 0, -99, 3, 1};
int second_nu, first_nu, dop;
first_nu = mass[3];
second_nu = mass[7];
cout << "Snachala v 3-element byl = " << first_nu << endl;
cout << "Snachala v 7-element byl = " << second_nu << endl;
dop = first_nu;
first_nu = second_nu;
second_nu = dop;
cout << "Potom v 3-element byl = " << first_nu << endl;
cout << "Potom v 7-element byl = " << second_nu << endl;
cin.get();
}