Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
need error catch for small program i wrote
OK... simple little program here
takes 10 inputs and multiplies the users 10 inputs by 10 constants stored in an array.
Then each of these 10 inputs is multiplied by its constant and displayed, and then a sum of all those are displayed also.
My error occurs when there is no number in one of the input boxes. I have the program to default to 0, but if the user deletes the 0 then it is possible to create this error... any idea on how to prevent the user from not inputting a number, or if the input is blank that the program automattically measures it as a 0 value?