{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Another Simple Program1

Another Simple Program1 - Knights always tell the truth and...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Puzzler of the Day This is one of many "knights and knaves" puzzles, which were created by mathematician Raymond Smullyan . The setting for most such puzzles is on an island which is inhabited by two types of people, knights and knaves.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Knights always tell the truth and knaves always lie. A visitor to the island encounters two inhabitants, A and B. A says: We are both knaves (that is, A and B are both knaves). Question : What are A and B? Knight or knave?...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online