Skip to content

Commit 346ad1e

Browse files
meme8383keith-packard
authored andcommitted
Update printf.md
1 parent 6ca577e commit 346ad1e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

doc/printf.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,13 @@ level, that macro is also correctly defined for the other two levels.
137137

138138
Here's an example program to experiment with these options:
139139

140-
#include <stdio.h>
140+
```c
141+
#include <stdio.h>
141142

142-
void main(void) {
143-
printf(" 2⁶¹ = %lld π ≃ %.17g\n", 1ll << 61, printf_float(3.141592653589793));
144-
}
143+
void main(void) {
144+
printf(" 2⁶¹ = %lld π ≃ %.17g\n", 1ll << 61, printf_float(3.141592653589793));
145+
}
146+
```
145147
146148
Now we can build and run it with the double options:
147149

0 commit comments

Comments
 (0)