How to resolve the algorithm Phrase reversals step by step in the Smalltalk programming language
Published on 12 May 2024 09:40 PM
How to resolve the algorithm Phrase reversals step by step in the Smalltalk programming language
Table of Contents
Problem Statement
Given a string of space separated words containing the following phrase:
Show your output here.
Let's start with the solution:
Step by Step solution about How to resolve the algorithm Phrase reversals step by step in the Smalltalk programming language
Source code in the smalltalk programming language
|str|
str := 'rosetta code phrase reversal'.
Transcript showCR:(str reversed).
Transcript showCR:(((str splitBy:$ ) collect:#reversed) join:$ ).
Transcript showCR:(((str splitBy:$ ) reversed) join:$ ).
You may also check:How to resolve the algorithm FizzBuzz step by step in the R programming language
You may also check:How to resolve the algorithm Rename a file step by step in the min programming language
You may also check:How to resolve the algorithm Rename a file step by step in the FutureBasic programming language
You may also check:How to resolve the algorithm Sum and product of an array step by step in the Lambdatalk programming language
You may also check:How to resolve the algorithm I before E except after C step by step in the Factor programming language