vault backup: 2024-09-11 12:11:34
This commit is contained in:
parent
deb2dead0d
commit
2a86cc053b
@ -5,4 +5,15 @@ c. `83.1620`
|
|||||||
d. `1e-06 `
|
d. `1e-06 `
|
||||||
|
|
||||||
# 2.
|
# 2.
|
||||||
a. `printf`
|
```c
|
||||||
|
float x = 0.12345;
|
||||||
|
// a
|
||||||
|
printf("%-8.1f", x);
|
||||||
|
// b
|
||||||
|
printf("%10.6f", x);
|
||||||
|
// c
|
||||||
|
printf("%8.3f", x);
|
||||||
|
// d
|
||||||
|
printf("%-6.0g", x);
|
||||||
|
```
|
||||||
|
c.
|
Loading…
Reference in New Issue
Block a user