posted by
mohit_at_codepad
on Mar 20
Review comment: This piece of code is not readily testable. Write main function in such a way that it looks for user input. (Command line / console or file redirection)
In command line case, if input is not supplied, a dummy / default input can be used. (like 20 in this case)
reply