/* 作  者:xx 班 xx號 xxx 完成日期:2008年 3月 12日 程式檔名:passwd-xxxx.c 程式功能:輸入密碼 */ #include #include int main(void) { int input; int cnt=0; int passwd=1212; while(1) { printf("請輸入密碼: "); scanf("%d", &input); /* 請在此輸入程式碼,以完成題目要求 */ } system("pause"); return 0; } /* output----------------------- 請輸入密碼: 1234 請輸入密碼: 1212 密碼輸入正確,歡迎使用本系統!! ------------------------------*/