int myArray[1000] = {};
for(int i = 0;i < 1000;i++){
int temp;
scanf("var=%d",&temp);
if(temp == -1){//or you can put any other value for controller
break;
}
myArray[i] = temp;
}
//now myArray have all of your values
Thank you for help :)
Vitalii
Prince Of Persia
Anonymous
AmR
Generation Z
olli
Vlad
Alion🦁
Xudoyberdi
Vishal
Vedant