Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUST

Repeat the given string exactly n times

# Repeat the given string exactly n times
def repeat_str (n, s)
  s*n
end
 
PREVIOUS NEXT
Tagged: #Repeat #string #times
ADD COMMENT
Topic
Name
4+2 =