So i am putting some numbers into an array using a basic calculation and then checking to see if they were inputted correctly by displaying them, but they will only display with the first number, not the decimal places after it, here is my code.
You are doing integer division (1/i); both are integers, so it will only retun the integer result and then convert that result to a double when you assign the result. You need to cast one or both to a double to do floating point calculations. Also, you have a buffer over run. Your array goes from 0 to 99, but you are accessing indecies from 1 to 100.