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 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