> one.must use switch statement.
Code:
switch ( input ) {
   case 'A': num_a++; break;
   // etc etc
}