Data output

This command is used to display information on the console. The values of a variable, a predefined value, or returned by a function can be "written".


Fig. 1. Example of program with two print commands/output of data.

In the above code it is used an integer variable and the user must enter an integer value. If the value is 10, then the message The entered value was precisely 10..
On the other hand, if the user enter any value but 10, the message to be presented will be The entered value was not 10..
Try to improve this code printing, on the second case, also the entered value (variable n).