Sunday, 14 April 2013

Program in C to print * at place of password 


//********************************************************
//
//                Prepared By : Ashutosh singh
//
//********************************************************

#include<stdio.h>
#include<conio.h>
void main()
 {
      char pass[7];
      int i ;
     
    printf("\nEnter Password : ");
     
         i=0;
    while(i<7)
    {
            pass[i]=getch();
          printf(" * ");
    }

getch();

}



No comments:

Post a Comment