|
|
|
|
Please Enter capacity of knapsack: 100 Enter the value of item (0 to end): 15 Enter Weight of item: 10 |
Please Enter capacity of knapsack: a Invalid Input! Must be a number. Please Enter capacity of knapsack: 100 Enter the value of item (0 to end): a Invalid Input! Must be a number. Enter the value of item (0 to end): 15 Enter Weight of item: a Invalid Input! Must be a number. Enter Weight of item: 10 |
Please Enter capacity of knapsack: a Invalid Input! Must be a number! Please Enter capacity of knapsack: 0 Value must be greater than (0)! Please Enter capacity of knapsack: 100 Enter the value of item (-9 to end): a Invalid Input! Must be a number! Enter the value of item (-9 to end): 0 Value must be greater than (0)! Enter the value of item (-9 to end): 15 Enter Weight of item: a Invalid Input! Must be a number! Enter Weight of item: 0 Value must be greater than (0)! Enter Weight of item: 10 Enter the value of item (-9 to end): -9 Press Enter to continue: |