#include<iostream>
using namespace std;
int main()
{
int i, z = 0, min, max;
int a[8] = { 12,23,34,45,56,67,78,89 };
max = a[0];
min = a[0];
for (i = 0; i < 8; i++)
...
#include<iostream>
using namespace std;
int main()
{
const int maxNum = 6;
int n, a[maxNum], i, j;
cout << "请为数组元素赋值(6个整数):\n";
for (n = 0; n < maxNum; n++)...
#include<iostream>
using namespace std;
int area(int x, int y)
{
int a;
a = x * y;
return a;
}
int main()
{
int length, width;
cout << "请输入长方形的长度和宽度:";
...