Advertisement
MarceloSousa

atividade 7

Oct 20th, 2013
313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.44 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <locale.h>
  4. #include <string.h>
  5. #include <conio.h>
  6.  
  7.    
  8.     int main (void){
  9.     setlocale(LC_ALL,"PORTUGUESE");
  10.     char senha[99];
  11.     int i,i2;
  12.        
  13.         for(i=0;i<=99;i++){
  14.             senha=getch();
  15.             if(senha[i]=='\x0D')
  16.                 break;
  17.                 printf("*");
  18.                 //printf("Sua senha é: %c",senha[i]);
  19.        
  20.         }
  21.         //for(i=0;strlen(senha[i]));i++)
  22.         //printf("Sua senha é: %c",senha[i]);
  23.     getch();
  24.     return 0;
  25.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement