#include <stdio.h>
#include <string.h>
#define USERNAME "admin"
#define PASSWORD "password"
int main() {
char username[20];
char password[20];
printf("กรุณากรอกชื่อผู้ใช้: "); printf("กรุณากรอกรหัสผ่าน: ");
if (strcmp(username
, USERNAME
) == 0 && strcmp(password
, PASSWORD
) == 0) { printf("เข้าสู่ระบบสำเร็จ!\n"); } else {
printf("ชื่อผู้ใช้หรือรหัสผ่านไม่ถูกต้อง!\n"); }
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdHJpbmcuaD4KCiNkZWZpbmUgVVNFUk5BTUUgImFkbWluIgojZGVmaW5lIFBBU1NXT1JEICJwYXNzd29yZCIKCmludCBtYWluKCkgewogICAgY2hhciB1c2VybmFtZVsyMF07CiAgICBjaGFyIHBhc3N3b3JkWzIwXTsKCiAgICBwcmludGYoIuC5gOC4guC5ieC4suC4quC4ueC5iOC4o+C4sOC4muC4mlxuIik7CiAgICBwcmludGYoIuC4geC4o+C4uOC4k+C4suC4geC4o+C4reC4geC4iuC4t+C5iOC4reC4nOC4ueC5ieC5g+C4iuC5iTogIik7CiAgICBzY2FuZigiJXMiLCB1c2VybmFtZSk7CiAgICBwcmludGYoIuC4geC4o+C4uOC4k+C4suC4geC4o+C4reC4geC4o+C4q+C4seC4quC4nOC5iOC4suC4mTogIik7CiAgICBzY2FuZigiJXMiLCBwYXNzd29yZCk7CgogICAgaWYgKHN0cmNtcCh1c2VybmFtZSwgVVNFUk5BTUUpID09IDAgJiYgc3RyY21wKHBhc3N3b3JkLCBQQVNTV09SRCkgPT0gMCkgewogICAgICAgIHByaW50Zigi4LmA4LiC4LmJ4Liy4Liq4Li54LmI4Lij4Liw4Lia4Lia4Liq4Liz4LmA4Lij4LmH4LiIIVxuIik7CiAgICB9IGVsc2UgewogICAgICAgIHByaW50Zigi4LiK4Li34LmI4Lit4Lic4Li54LmJ4LmD4LiK4LmJ4Lir4Lij4Li34Lit4Lij4Lir4Lix4Liq4Lic4LmI4Liy4LiZ4LmE4Lih4LmI4LiW4Li54LiB4LiV4LmJ4Lit4LiHIVxuIik7CiAgICB9CgogICAgcmV0dXJuIDA7Cn0K