SM Ryan said:
The technique used to be known as a temper tantrum.
[ Obnoxious '#' quoting character corrected. ]
Nonsense. The OP apparently was unwilling or unable to use whatever
reference materials he has available to answer a very simple question.
Telling him how to print short and long integers would teach him how
to print short and long integers, and nothing else. It would also
encourage him to come back here to ask, for example, how to print
floats and doubles. Jack Klein's response was intended to help the OP
to answer the question for himself, which, if he pays attention, will
be of much greater benefit.
There's a parable about giving a man a fish that you might find
instructive. (Yes, it's a religious parable, but the point is valid
whatever your beliefs happen to be.) I'd quote it for you, but I'm
sure your capable of looking it up yourself.