Computer Science, asked by madhu9241, 9 months ago



WAP to accept a string and print
word by word
Eg.all the best
Output
all
the
best

Answers

Answered by anindyaadhikari13
2

Answer:

See this.

It's verified.

In java.

See, the conditions in the for loop are given.

The ch variable is used to check whether it is a special character or not.. if it is a special character, then the s variable is printed.. and it continues.

Explanation:

Hope this will help you..Please mark this answer as the brainliest and follow me.

Attachments:
Similar questions