题目内容
下面程序的功能是比较用户键盘输入的口令userInput与内设的口令password是否相同。若相同,则输出"Correct password! Welcome to the system...",若userInputpassword"。按要求在空白处填写适当的表达式或语句,使程序完整并符合题目要求。#include #include int main(){ char password[7] = "secret"; char userInput[81] ; printf("Input Password:"); scanf(_____________); if ( ______________ )printf("Correct password! Welcome to the system...\n"); else if ( ___________________)printf("Invalid password!user inputpassword\n"); return 0;}
查看答案
搜索结果不匹配?点我反馈