As the others have said, you probably want to look at the ncurses library. But if you don't need advanced formatting, perhaps something simple like this can be enough:
#include
#include
int main(void) {
int number = 0;
while (1) {
++number;
printf("\rThe number is now %d.", number);
fflush(stdout);
sleep(1);
}
return 0;
}