Step 2 of 6
Printing values with %d
printf replaces each %d with the next value after the format string, in order.
int a = 3, b = 4;
printf("%d + %d\n", a, b); // prints 3 + 4
Your turn: complete the printf so it prints K/D: 20/5.
Step 2 of 6
printf replaces each %d with the next value after the format string, in order.
int a = 3, b = 4;
printf("%d + %d\n", a, b); // prints 3 + 4
Your turn: complete the printf so it prints K/D: 20/5.