Advertisement
Guest User

Untitled

a guest
Dec 19th, 2014
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. А)
  2. #include <stdio.h>
  3.  
  4. int main()
  5. {
  6. int sym = '6';
  7. double y = -145.13;
  8.  
  9. printf("sym:");
  10. printf("\n\td: %d", sym);
  11. printf("\n\ti: %i", sym);
  12. printf("\n\tX: %X", sym);
  13. printf("\n\tx: %x", sym);
  14. printf("\n\to: %o", sym);
  15. printf("\n\tu: %u", sym);
  16.  
  17. printf("\ny:");
  18. printf("\n\tf: %f", y);
  19. printf("\n\te: %e", y);
  20. printf("\n\tE: %E", y);
  21. printf("\n\tg: %g", y);
  22.  
  23. return 0;
  24. }
  25.  
  26. Б)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement