с в) долго думал
#include
#include
#include
#include
using namespace std;
int main(int argc, char* argv[])
{
int arr[10];
cout << "input elements " << endl;<br>for ( int i= 0; i < 10; i++ )
cin >> arr[i];
int max=-9999;
int min=9999;
cout << "Massiv " << endl;<br>for ( int o= 0; o < 10; o++ )
cout << arr[o] <<" ";<br>cout << ""<<endl;<br> for ( int l= 0; l < 10; l++ )
if((arr[l]>max) and (arr[l]<0 ) )<br> max =arr[l];
cout << "Max from negatives is: " <<" ";<br>cout << max << endl;<br>for ( int z= 0; z < 10; z++ )
if((arr[z]=0)) min =arr[z];
cout << "Min from positives is: " <<" ";<br>cout << min << endl;</p>
int gmax,gmax2;
gmax=arr[1];
gmax2=arr[2];
for (int l=2;l<10;l++)<br>if(arr[l]>gmax){
gmax2=gmax;gmax=arr[l]; }else if(arr[l]>gmax2)gmax2=arr[l];
cout << "Second greatest element is: " <<" ";<br>cout << gmax2<< endl;<br>}