Repeat a String a number of times Using Elixir - Computer Programming

Latest

C C++ Java Python Perl Programs Examples with Output -useful for Schools & College Students

Thursday, September 28, 2017

Repeat a String a number of times Using Elixir

Repeat a String a given number of times.

Program:

IO.puts "AAA" = String.duplicate("A", 3)

IO.puts  "HELLO HELLO " = String.duplicate("HELLO ", 2)

OUTPUT:

AAA

HELLO HELLO 

No comments:

Post a Comment