Advertisement
Guest User

Untitled

a guest
Sep 15th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.32 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main() {
  4.     unsigned char first, second, third, fourth;
  5.     scanf("%02hhu%02hhu%02hhu%02hhu", &first, &second, &third, &fourth);
  6.     first += 'A' - 1;
  7.     second += 'A' - 1;
  8.     third += 'A' - 1;
  9.     fourth += 'A' - 1;
  10.     printf("%c%c%c%c\n", first, second, third, fourth);
  11.     return 0;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement