また、別の 10 要素配列を使用して、5% 増加した後の各高さを計算して表示する必要があります。何か案は?申し訳ありません。配列を使用するのはこれが初めてです。
#include <iostream>
using namespace std;
int main()
{
int MINheight = 0;
double height[10];
for (int x = 0; x < 10; x = x + 1)
{
height[x] = 0.0;
}
cout << "You are asked to enter heights of 10 students. "<< endl;
for (int x = 0; x < 10; x = x + 1)
{
cout << "Enter height of a student: ";
cin >> height[x];
}
system("pause");
return 0;
}