Hello programmers out there! I have one question that I'm confused about it. Can anyone help me to solve it? Thanks in advance!

Question :
Write a c++ program that prompts users to enter a number. Have your program accept the number as an integer and display the integer immediately by using a cout statement. Run your program three times. The first time, enter a valid integer number; the second time, enter a double-precision number; and the third time, enter a character. Using the output display, see what number your program actually accepted from the data you entered.