Accept an input with 10 letters If the letter W contains five or more characters

Accept an input with 10 letters If the letter W contains five or more characters, then output "OK" and "NG" if the number is less than five. (Note: The 10 letters contain space between each other.

The letter contained in the 10 letters is only S or W)

Example (1) If the input value is W W W W W S W W S W, the output is 5 or more, so the output is OK.

Example (2) If the input value is W W S S S W S W S S, if the input value is less than 5, then the output is NG.

0   0
Hein Htet
profile Ogenus 25th August 2023

Appreciated your article. You should post more articles to share new things

haunt the house

Write a comment ...
Post comment
Cancel
profile Dalton 24th July 2023

I absolutely love The Paddock Magazine! It's the ultimate source of insider information and in-depth coverage of the motorsport world. The articles are well-written and the photography is stunning. It's a must-read for any motorsport enthusiast!

Write a comment ...
Post comment
Cancel
profile Sonny 12th July 2023

I really appreciate you taking the time to write such a concise. If you see any of these the backrooms things, a mystery doorway will appear before you, and you will have to go through the wall.

Write a comment ...
Post comment
Cancel
profile Francis 10th June 2023

I recently used papercoach.net for an essay and I must say that the service was outstanding. The writer was able to provide me with an essay that was the perfect length and quality. The customer service was also extremely helpful and I felt well taken care of. I am definitely a satisfied customer and will use this service again in the future.

Write a comment ...
Post comment
Cancel
profile marget 30th March 2023

 

Have you ever wondered what the difference is between a router and Wi-Fi? Sure, they both provide internet access, but there are some key distinctions to consider when it comes to their technical capabilities. Let’s take a closer look at the differences between a router and Wi-Fi. https://justwifirouter.com/best-wifi-router-for-fiber-optic/

Write a comment ...
Post comment
Cancel
profile 27th March 2023

Run, jump over obstacles, and make it through perilous stages in vex 3! Stickman vex is back with even more action that is both exhilarating and demanding.

Write a comment ...
Post comment
Cancel

Please rotate your device

We don't support landscape mode on your device. Please rotate to portrait mode for the best view of our site