need to know how to replace input with *****

i am using borland turbo c++, i am trying to write a program that would ask the user to enter a 4 digit pin number. when the user inputs their pin, i would like for the numbers entered to be replaced by astericks (****). Its not an actual pin number or password that is being entered, its any numbers chosen by the user that should be excepted.

thnanks for your help
If you can include <conio.h>, then you may do getch() in the cycle
Topic archived. No new replies allowed.