Question: CHALLENGE ACTIVITY 5 . 3 . 4 : Advanced while loop examples. 5 5 3 2 6 2 . 4 1 9 4 5 1
CHALLENGE ACTIVITY
: Advanced while loop examples.
qxzqy
Jump to level
String inputword is read from input. Write a loop that iterates while inputword is not equal to 'turtles'. In each iteration of the loop:
Output 'turtles not found yet'.
Read string inputword from input.
Click here for example
Ex: If the input is:
take
good
care
of
your
turtles
then the output is:
turtles not found yet
turtles not found yet
turtles not found yet
turtles not found yet
turtles not found yet
Found turtles!
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
