Commit d0b91074 authored by Aro Ghukasyan's avatar Aro Ghukasyan

Aro Ghukasyan Exe_07_08 V.2

parent 0d5f2961
a) std::cout << f [ 6 ] <<std::endl;
b) double b [ 4 ]
a) std::cout << f [ 6 ] << std::endl;
b) double b [ 4 ];
std::cin >> b [ 3 ] ;
c) int g [ 5 ] = { 8, 8, 8, 8, 8 };
d)
double total;
double total = 0;
for (int i = 0; i < 100; i++)
{
total += g [ i ];
......@@ -18,20 +18,20 @@ e) for (i = 0; i < 11; i++)
f )
srand(time(0));
const int araysize = 99;
double w[x];
const int araySize = 99;
double w[araySize];
double max = a[0];
double min = a[0];
for (int i = 0; i < x; i++) {
for (int i = 0; i < araySize; i++) {
w[i] = rand() % 100 * 1.23;
}
for (int i = 0; i < x; i++) {
for (int i = 0; i < ; i++) {
std::cout << std::setw(2) << i + 1 << std::setw(10) << w[i] << std::endl;
}
std::cout << std::endl;
for(int i = 0 ; i < x - 1; i++ ) {
for(int i = 0 ; i < araySize - 1; i++ ) {
if (max < a[i + 1])
max = a[i + 1];
if (min > a[i + 1])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment