In this tutorial Console program allow to user only enter numbers. Variables are defined in the first row. Then users enter char in do-while loop. In the loop “if statement” checks the char whether is number or not.
In this tutorial Console program allow to user only enter numbers. Variables are defined in the first row. Then users enter char in do-while loop. In the loop “if statement” checks the char whether is number or not.