The data (characters) you sent to PC terminal should be displayed as they were sent.
So, it depends on what you actually send to terminal.
In this case, a simple putc() would work.
//=============================int k;
for (k = 0; k<100; k++) {
putc(k);
}
//=============================
btw, what MCU do you use?