[Solved] Unable to produce wanted output, loops and arrays in C [closed]
I am sorry but scanf does not work that way. To write the value the user types in at the prompt, as n[i], scanf needs an address (in memory). C is in this regard intentionally rudimentary, more so than a language like Python or JavaScript. The way you wrote your code, you end up passing … Read more