Răspuns :
#include <iostream>
#include <math.h>
using namespace std;
int main()
{
int n, z, k, i=1, p=1, min, vector[255];
while ( n!= 0 )
do {
cin>>n;
vector[i]=n;
i=i+1;
}while ( n!= 0 );
for( int k=1; k<=i; k++)
{
for( int z=1; z<=i; z++)
{
if( vector[k] < vector[z] )
{
min=vector[k] ;
}
}
}
return 0;
}
#include <iostream>
using namespace std;
int main()
{
int number = 1, minimum = 1e9;
while (true)
{
cin >> number;
if (number == 0)
break;
if (number < minimum)
minimum = number;
}
cout << minimum << '\n';
}
Daca stii engleza ti-l traduci singur, si fara sa stii C++.
cin = citire
cout = scriere