Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main() {
- char password[] = "p@ssw0rd";
- char input[20];
- printf("Masukkan password: ");
- scanf("%s", input);
- if(strcmp(input, password) == 0) {
- printf("Password benar!\n");
- } else {
- printf("Password salah!\n");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement