Hi everyone,
I'm a total beginner to c++ and I am having a bit of trouble with calculations within a for statement the goal of the program is to calculate the stresses in a truss system based on the values inputted by the user. I used multiple for loops so that the user can input all the required data for the table and a for loop to calculate the values and output them in the format I want. Problem is the first iteration of the calculations doesn't work properly while the second and the third do. Even though its probably something simple I can't seem to figure it out, if anyone could point me in the right direction it would be much appreciated.