You are not logged in. Please login at to post your questions!


What should I do with invalid input?

What should be my approach towards invalid input.

asked 22 Mar '13, 16:46

abhijeetpandey's gravatar image

3★abhijeetpandey ♦♦
accept rate: 22%

There will not be invalid input. If a program says a number will be between 0 and 100, it will be between 0 and 100. There is no need to write if (number>=0 && number<=100), or do anything in other cases.


answered 22 Mar '13, 16:47

admin's gravatar image

0★admin ♦♦
accept rate: 35%

toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:


question asked: 22 Mar '13, 16:46

question was seen: 3,700 times

last updated: 22 Mar '13, 16:47