<html>
<body>
<table border="1" cellspacing="0" height="333" width="333">
<tr>
<td colspan="8"></td>
</tr>
<td rowspan="6"></td>
<td colspan="6"></td>
<td rowspan="7"></td>
<td rowspan="4"></td>
<td colspan="4"></td>
<td rowspan="5"></td>
<td rowspan="2"></td>
<td colspan="2"></td>
<td rowspan="3"></td>
<td></td>
<td colspan="3"></td>
<td colspan="5"></td>
<td colspan="7"></td>
</table>
<br>
</body>
</html>
Объяснение:
картинка
#include <iostream>
using namespace std;
int main()
{
bool firstArrMore = true;
int firstArr[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9 };
int firstArrLength = sizeof(firstArr) / sizeof(int);
int firstArrComposition = 1;
int secondArr[] = { 10, 11, 12, 13, 14, 15, 16 };
int secondArrLength = sizeof(secondArr) / sizeof(int);
int secondArrComposition = 1;
int min = firstArr[0];
for (int i = 0; i < firstArrLength; i++) {
cout << firstArr[i] << " ";
if (min > firstArr[i]) {
min = firstArr[i];
}
if (firstArr[i] > 0) {
firstArrComposition *= firstArr[i];
cout << endl;
for (int i = 0; i < secondArrLength; i++) {
cout << secondArr[i] << " ";
if (min > secondArr[i]) {
min = secondArr[i];
firstArrMore = false;
if (secondArr[i] > 0) {
secondArrComposition *= secondArr[i];
cout << endl << "The most less element in ";
if (firstArrMore) {
cout << "first array" << endl;
cout << "Composition is " << firstArrComposition << endl;
else {
cout << "second array" << endl;
cout << "Composition is " << secondArrComposition << endl;
<html>
<body>
<table border="1" cellspacing="0" height="333" width="333">
<tr>
<td colspan="8"></td>
</tr>
<tr>
<td rowspan="6"></td>
<td colspan="6"></td>
<td rowspan="7"></td>
</tr>
<tr>
<td rowspan="4"></td>
<td colspan="4"></td>
<td rowspan="5"></td>
</tr>
<tr>
<td rowspan="2"></td>
<td colspan="2"></td>
<td rowspan="3"></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td colspan="3"></td>
</tr>
<tr>
<td colspan="5"></td>
</tr>
<tr>
<td colspan="7"></td>
</tr>
</table>
<br>
</body>
</html>
Объяснение:
картинка
#include <iostream>
using namespace std;
int main()
{
bool firstArrMore = true;
int firstArr[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9 };
int firstArrLength = sizeof(firstArr) / sizeof(int);
int firstArrComposition = 1;
int secondArr[] = { 10, 11, 12, 13, 14, 15, 16 };
int secondArrLength = sizeof(secondArr) / sizeof(int);
int secondArrComposition = 1;
int min = firstArr[0];
for (int i = 0; i < firstArrLength; i++) {
cout << firstArr[i] << " ";
if (min > firstArr[i]) {
min = firstArr[i];
}
if (firstArr[i] > 0) {
firstArrComposition *= firstArr[i];
}
}
cout << endl;
for (int i = 0; i < secondArrLength; i++) {
cout << secondArr[i] << " ";
if (min > secondArr[i]) {
min = secondArr[i];
firstArrMore = false;
}
if (secondArr[i] > 0) {
secondArrComposition *= secondArr[i];
}
}
cout << endl << "The most less element in ";
if (firstArrMore) {
cout << "first array" << endl;
cout << "Composition is " << firstArrComposition << endl;
}
else {
cout << "second array" << endl;
cout << "Composition is " << secondArrComposition << endl;
}
}