SHARE
TWEET

Untitled

a guest Sep 15th, 2019 91 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top