#include<stdio.h> #include<stdlib.h> int main() { int Pass; printf("Please enter the password: "); scanf("%d", &Pass); if(Pass==123456) { printf("\nHello! Eve. Welcome to Disney ATM\n\n"); } else if(Pass==654321) { printf("\nHello! Adam. Welcome to Disney ATM\n\n"); } else { printf("\nAccess denied!!! :)/>\n\n"); } system("pause"); return 0; }
how can i mask out the password. example if i type out my password, it will show as ******
And i would like to print out this --> printf("Processing - - - - - - -") in a loop. every 300 msec print one dot ("-").
thanks.