I have an idea but it produces an error, and when I finish writing the numbers entered in the console, the numbers do not come out after I find the number "1" in the vector, it may seem simple, but I have not been able to solve it (unless it is the IDE or the pc)
Thanks
int vector[50];
cout << "Escriba el Numero" << endl;
for (int i = 0;i <= 50;i++)
{
cin >> vector[i];
if (vector[i] ==-1)
{
break;
}
}
cout << "El Numero Completo Es: " << endl;
for (int i = 0; i <= vector[i]; i++)
{
cout << vector[i];
}
cout << "?" << endl;