Quick actions

cmd+k|ctrl+k

Navigation

Languages

lab6 (108)

Snippet info

Language

Cpp

Visibility

public

Author

buteskul5.6

Created

2018-11-09T20:33:58Z

Updated

2018-11-13T21:23:00Z

#include <iostream>
#include <cmath>

using namespace std;

int main()
{
	int const N = 10;
	int array[N];

	for (int i = 0; i < N; i++)
	{
		array[i] = rand() % 10;
		cout << i << ". " << array[i] << endl;
	}
	array[6] = pow(array[1], 2);
	cout << endl;

	for (int i = 0; i < N; i++)
	{
		cout << i << ". " << array[i] << endl;
	}
	return 0;
}
INFO