The advantage of this approach is that the format does not need to be restored to its original state
after it is modified, because the format applies to the stream object, not to the stream buffer. Thus,
the corresponding output of the program is as follows: