question mark

how to make a program where the users type "?" and the program says you have typed a question mark?
Just take in a char variable and then use an if statement to see if it's question mark.
its working. Thankyou.
Topic archived. No new replies allowed.