Write the algorithm of a program that reads password from the user and then compare it with the original password stored in file. If the password matches, it should display you got 10 marks else it should print you have failed.
Input:
PASSWORD // password stored in file
Enter "password" // user enter password
if "password"= PASSWORD then
Output: "You got 10 marks"
else
Output: "You have failed"
Comments
Leave a comment