Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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 characters.
for example, if the input is:
student@najah.edu
najahstreet
najahhospital
nablusoldcity
palestineismycountry
najahuniversity
stop.
the output is:
student@najah.edu
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started