The problem you are having is that "Baby Oil" contains a space. When reading pdtname, the program stops on the space after "Baby". Then when the program tries to read "qty", it sees "Oil", which is non-numeric, and returns "0". The "Oil" remains in the stream, and the same thing happens with price.
For now, I would suggest sticking with 1-word products so you don't run into this problem. There are ways to solve this problem, but for a beginner I would suggest just using a different data set until you understand the basics.
By the way, the void main() -- The standards require that int main() be used. Some compilers allow the non-standard void main() for various reasons (mainly historical, I suspect). Some books and teachers use the void main() structure because they are not aware of the correct way, or they don't want to explain why main is supposed to return a value. Get in the habit of using int main() If you don't supply your own return statement, it will return for you.