I am making a program that takes a 10 digit number, and using a process makes a verification #. But I would like to display the output on the same line as the input. Any help is appreciated, C code would be great but C++ is fine also.

Example:
10 Digit # 10 Digit # + Validation
6458796218 6458796218Q

Mine looks like:
10 Digit # 10 Digit # + Validation
6458796218
6458796218Q