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 00:30
Match the sentence fragment in the first column with the appropriate ending in the second column. a little per favore?
Answers: 1
question
Computers and Technology, 24.06.2019 08:00
How can smart devices benefit businesses, organizations, and social communities in the global marketplace?
Answers: 1
question
Computers and Technology, 24.06.2019 09:50
Self contained sequences of actions to be performed are? a. expressions b. algorithms c. functions d. formulas
Answers: 1
question
Computers and Technology, 24.06.2019 11:30
Convert 11001110(acdd notation) into decimal
Answers: 2
You know the right answer?
Create a function name Repeat() that take 2 parameters named word and repeatCount. (In the function)...
Questions
question
Biology, 12.10.2020 23:01
question
Mathematics, 12.10.2020 23:01
question
Mathematics, 12.10.2020 23:01
question
Social Studies, 12.10.2020 23:01
question
Mathematics, 12.10.2020 23:01
Questions on the website: 13722367