#include <iostream.h>
#include <conio.h>
int main()
{
int a[100];
int n;
int k;
int i;
cout << "vvedite n: ";
cin >> n;
for (i = 0; i < n; i++)
{
cout << "a[" << i << "] = ";
cin >> a[i];
}
for (i = 0, k = -1; i < n; i++)
if (a[i] != 0)
k = i;
if (k == -1)
cout << "vse chisla yavlyayutsya nulevimi";
else
if (a[k] > 0)
cout << "pervoe nenulevoe chislo yavlyaetsia polojitel'nim";
else
cout << "pervoe nenulevoe chislo yavlyaetsia otricatel'nim";
getch();
}
I like this site it’s a master piece! Glad I noticed this ohttps://69v.topn google.Blog range