C Programming : PASSWORD TEXT MASK

Onepoin.com - C Programming : PASSWORD TEXT MASK

Note : Kode program paling bawah..




Koding C program :

 #include <stdio.h>
#include <string.h>
int main() {
int k = 1;
char pw[30];
printf("Login User :");
scanf("%s", pw);
while(k <= 3) {
if(strcmp(pw,"bekulat")==0){
break;
}
else {
printf("Login User Salah Bodoh, Break break, qo yang buat salah pulak \n");
printf("Login User : ");
scanf("%s", pw);
k++;
}
}
printf("Password : ");
scanf("%s", pw);
while(k <= 3){
if(strcmp(pw,"sukasuka")==00){
printf("Login Berhasil\n");
break;
}
else {
printf("Password Salah Oi !! \n");
printf("Masukkan Password : ");
scanf("%s",pw);
k++;
}
}
return 0;
}

Subscribe to receive free email updates:

2 Responses to "C Programming : PASSWORD TEXT MASK"