Skip to content
Advertisement

Tag: indices

generated empty [i] in for loop

I want to create an empty set up to the value n entered by the user and assign the values in the for loop into this set. But for this, it is necessary to create as many for loops as the user inputs, it is not possible to do this. How can I do it? The code below works correctly,

Advertisement