making password of four digits using getch and without pressing enter key

i have to make a program using only if and elses and getch the input is four digits which will not be shown and instead will be like "****" and the out put is correct or wrong... please help me
Topic archived. No new replies allowed.