1. Engineering
  2. Computer Science
  3. write a loop in the following format in the first...

Question: write a loop in the following format in the first...

Question details

Write a loop in the following format:

In the first iteration the system should ask the user to input her/his name and prints "Hi name"

Then, it should ask the user whether he or she wants to continue?

If the user inputs "Yes", then the system should ask for her/his name again and prints "Hi name".

If the user inputs "No" , then the system should stop

If the user inputs anything other than "Yes" or "No", then the system should print an error message

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution