This is the code-
  int j;
   printf("Enter the number:");
   scanf("%c",&j);
   printf("You have enter the decimal number %i \n",j);
   printf("You have enter the octal number %o\n",j);
   printf("You have enter the hexadecimal number %x\n",j);
   printf("You have enter the character %c\n",j);
   
This is my output:
Enter the number:r
You have enter the decimal number 4201074 
You have enter the octal number 20015162
You have enter the hexadecimal number 401a72
You have enter the character r
 
    