wow
This commit is contained in:
parent
d58c7addf2
commit
fdd78dfa58
2 changed files with 67 additions and 0 deletions
23
02/02_47p.c
Normal file
23
02/02_47p.c
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#include <stdio.h>
|
||||
|
||||
int main() {
|
||||
int a = 12345;
|
||||
|
||||
// printf("(%d)\n", a);
|
||||
// printf("(%10d)\n", a);
|
||||
// printf("(%010d)\n", a);
|
||||
// printf("(%-10d)\n", a);
|
||||
|
||||
// double f = 123.45;
|
||||
// printf("[%lf]\n", f);
|
||||
// printf("[%15f]\n", f);
|
||||
// printf("[%015f]\n", f);
|
||||
|
||||
char str[8] = "Program";
|
||||
printf("[%s]\n", str);
|
||||
printf("[%10s]\n", str);
|
||||
printf("[%-10s]\n", str);
|
||||
printf("[%-10.3s]\n", str);
|
||||
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue