#include <stdio.h> #include <string.h> int getNum(char ch) { if ('0' <= ch && ch <= '9') { return (int)(ch - '0'); } else if ('A' <= ch && ch <= 'Z') { return (i...