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, 24.06.2019 08:30
Aconsumer would pay an extra they used the rent to own program to buy the computer, rather than using cash. for all of the items, is the cheapest option over the life of the contract. the most expensive overall option is to use purchase the item.
Answers: 2
question
Computers and Technology, 24.06.2019 10:00
Which feature of a blog to restore and retrieve older post
Answers: 3
question
Computers and Technology, 24.06.2019 11:40
100 pts. first person gets brainliest
Answers: 2
question
Computers and Technology, 24.06.2019 13:20
In the insert table dialog box, you select the checkbox to create the first row as the header of the table.
Answers: 3
You know the right answer?
Create a function name Repeat() that take 2 parameters named word and repeatCount. (In the function)...
Questions
question
Geography, 25.11.2021 14:00
question
Mathematics, 25.11.2021 14:00