Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- А)
- #include <stdio.h>
- int main()
- {
- int sym = '6';
- double y = -145.13;
- printf("sym:");
- printf("\n\td: %d", sym);
- printf("\n\ti: %i", sym);
- printf("\n\tX: %X", sym);
- printf("\n\tx: %x", sym);
- printf("\n\to: %o", sym);
- printf("\n\tu: %u", sym);
- printf("\ny:");
- printf("\n\tf: %f", y);
- printf("\n\te: %e", y);
- printf("\n\tE: %E", y);
- printf("\n\tg: %g", y);
- return 0;
- }
- Б)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement