printf Flashcards

1
Q

placeholders can be replaced later with values t/f

A

true

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

to print out a string

A

%s

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

to print out on a new line

A

%n

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

to print out a number

A

%d

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

to print out a number to 2dp

A

%.2f

How well did you know this?
1
Not at all
2
3
4
5
Perfectly