while loop not initializing

Posted 23 January 2013 - 08:26 PM

Hello all. Basically, I'm new to C programming but not necessarily to programming. I'm a college student and took a semester of Java, so I understand many of the fundamentals. However, I'm having issues with the while loop in my code not initializing if the condition is met.

Obviously, there is more to the program, but this needs to be solved before I can move on. Some context: The idea of the program is to calculate the volume and surface area of a cylindrical tank with concave spheres on the ends. However, the length can only be between 10 and 20, and the radius between 3 and 6. Also, should the radius be more than half the length of the container, the tank would not be possible because the concave spheres would overlap.