Using the Copy() Function to replicate Strings in the Ring programming language

Hello

To replicate a string in the Ring programming language we can use the Copy() function

Syntax:

    copy(string,nCount) —> string replicated nCount times

Example

See “Hello” + copy(nl,3) + “How are you?” + nl

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s