0
It's impossible to enter in loop a multiple input.
3 Respuestas
0
I'm not sure this is what you're looking for but here is code to get input using an array and loop.
#include <iostream>
int main() {
int length = 5;
int arr[length];
for (int i=0; i<length; i++)
std::cin >> arr[i];
}
0
In my code it doesn't work. Once I input a data it runs endless, but if I input the data to end the loop it does work and finish the program successfully.
0
Can you share your code?