CodeClerks

Next integer for $5

Next integer

This is a simple program that outputs the next integer that follows the number (with some restrictions) that the user input.

Examples of:
Correct inputs: 1, 2, 3, -10, -100, 2.3, 0.10, -10.2
Incorrect inputs: 9999999999999999, -1111111111111111, words, 123words4423
causes for incorrect inputs: Too big, too small, contains letters, contains letters and numbers.

The output of the correct results: 2, 3, 4, -9, -99, 3, 1, -9
For incorrect inputs, the program will still ask for a number that is neither too big nor small.


Tags

C Windows

Other services by Rapange

$5 - In stock