subject

Create a function name Repeat() that take 2 parameters named word and repeatCount. (In the function) Create a variable named result and set it to an empty string
Create a for loop that loops for repeatCount times(in the for loop)
Add word to the result
Return the value of result(In the main code)
Create a variable name finalWord and set it equal to β€œba”
Call Repeat() with values β€œna” and 4
Concatenate finalWord and the value returned from calling the Repeat() function
Print the finalWord

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 20:00
When you mouse over and click to add a search term this(these) boolean operator(s) is(are) not implied. (select all that apply)?
Answers: 1
question
Computers and Technology, 23.06.2019 02:30
Experimental data that is expressed using numbers is said to be
Answers: 1
question
Computers and Technology, 23.06.2019 06:00
When is a chart legend used a. all the time b. whenever you are comparing data that is the same c. whenever you are comparing multiple sets of data d. only for hand-drawn charts
Answers: 2
question
Computers and Technology, 23.06.2019 15:00
In the blank libreoffice writer document, to start the process of entering a date field into a letter, click on the insert menu. edit menu. file menu. fields menu.
Answers: 3
You know the right answer?
Create a function name Repeat() that take 2 parameters named word and repeatCount. (In the function)...
Questions
Questions on the website: 13722361