Alternatively, you can use printf, which is used in C.

When using printf, you use placeholders which you can format. The placeholder for int is %d. If you want to indicate that all numbers should...