#include <iostream>
int main()
{
usingnamespace std;
int i, numbers[10], max;
int c, numbers[10], min;
cout << "enter 10 numbers:\n";
cin >> numbers[0];
max = numbers[0];
for (i = 1; i < 10; i++)
{
cin >> numbers [i];
if (numbers[i] > max)
max = numbers[i];
if (numbers[c] < min)
min = numbers[c];
}
cout << "the biggest number is" << max << endl
cout << "the numbers and their n\";
cout << "the smallest number is" << min << endl
cout << "the numbers and their n\";
return 0;
}
im trying to get the smallest and biggest numbers to output after i enter 10 random numbers... what am i doin wrong?