Question: write a code that keeps reading strings with a maximum length of 3 0 characters each until the word stop is entered. then, the code

write a code that keeps reading strings with a maximum length of 30 characters each until the word "stop" is entered. then, the code prints the longest string that contains "najah". the code should ignore any word shorter than 5 characters.
for example, if the input is:
student@najah.edu
najah_street
najah_hospital
nablus_old_city
palestine_is_my_country
najah_university
stop.
the output is:
student@najah.edu
 write a code that keeps reading strings with a maximum length

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!