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