Ask a New Question

Question

Say I write an application that prompts the user to enter an integer. If the user enters a double or string or anything, anything not an integer an error will appear. I'm having trouble writing code to combat this problem so I can errorproof my application.

I'm thinking I'll need to use a while loop to continually ask the user for an integer if they keep inputting something that's not an integer.
7 years ago

Answers

Steve
that'd be a good way
7 years ago

Related Questions

How do i write an application for a day's leave from school? I would use a memo format -- http://ow... Write a GUI application that prompts the user for a number between 1 and 5. Be sure to include err... I need to write an application letter responding to a job ad for an office asst position. This lett... How to write an application letter to apply for a position in your school. Write an application (in C) which implement the sequence on Explorer 16 board as below: 1. Make all... Write an application letter seeking for a position of a bookkeeper Write a Java application to display the price difference between two types of camera technologies,... how to write an application letter How do you write a application letter? How to write an application
Ask a New Question
Archives Contact Us Privacy Policy Terms of Use