I'm sorry everyone. I know nothing about the program for arduino.
I wish someone could teach me how to write the following program for arduino.
Aims: Ask the user to input a letter A or B, the arduino board then execute the corresponding function of program A of B.
for instance: A is the Blink and B is the Ping function.