Advertisement
mabwehz

characterToASCII

Apr 4th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3.  
  4. int main()
  5. {
  6.     char sampleCharacter;
  7.  
  8.     printf("Enter a character: ");
  9.     scanf("%c", &sampleCharacter);
  10.    
  11.     printf("Your character; %c in ASCII is: %d", sampleCharacter, sampleCharacter);
  12.    
  13.     return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement