Experiment #9

Strings handling Instructions

  • Objective
  1. Learning String handling Instructions.
 
 
  • Lab-work

             Write a small program that prompts the user to enter a password. Then, compare it against the word "password". If the two words match display a success message, otherwise, prompt for another trial. The program must allow for a maximum of three trials.

Note: You must use string handling instructions in your program.