how can i make the program print stars instead of typed letters. like password.
for example
enter the username: mike
enter the password: ****

**** = 1234
mike will go to a username variable and 1234 will go into password variable


thanks alot

the code you gave me doesn't fit my program because it clear the screen and type every thing again and i also have username before password.

any other suggestion?

>>any other suggestion?
Make it fit your situation. You won't find any perfect code you can plagerize, so think how you can incorporate it into your own program. If you don't want it to clear the screen then don't use that part. The purpose of that code (or any other examples for that matter) is to just give you some hints about how to write your own program.