K
K
Konstantin Malyarov2016-04-11 21:36:21
C++ / C#
Konstantin Malyarov, 2016-04-11 21:36:21

Why doesn't he write numbers?

The code is simple, from mane run time, and in time loop - increment. It just doesn't write numbers.

#include <stdio.h>

void main() {
  time();
}

time() {
  int t = 0;
  while (t < 10)
  {
    printf("Time %t \n", t);
    t++;
  }
}

Here is what the console outputs:
Time
Time
Time
Time
Time
Time
Time
Time
Time
Time
Для продолжения нажмите любую клавишу . . .

Where is the mistake?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Martyanov, 2016-04-11
@Konstantin18ko

Error at %t. Where did you find such a specification?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question