subject

What is the output of the following program? function start(){var x = 5; sumto(x); println(x); }function sumto(num){var sum = 0; for(var i = 0; i < = num; i++){sum += i; }println(sum); }

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 00:00
Ahorse is how much percent more powerful than a pony
Answers: 1
question
Computers and Technology, 22.06.2019 18:30
Which of the following commands is more recommended while creating a bot?
Answers: 1
question
Computers and Technology, 23.06.2019 08:00
What is a scenario where records stored in a computer frequently need to be checked
Answers: 2
question
Computers and Technology, 24.06.2019 14:30
Two students are discussing the flow of electricity. student a says that voltage is a measure of the amount of electron flow in a circuit. student b says that power is the product of voltage and current. which of the following statements is correct? a. only student a is correct b. only student b is correct c. both of the two students are correct d. neither of the two students is correct
Answers: 1
You know the right answer?
What is the output of the following program? function start(){var x = 5; sumto(x); println(x); }func...
Questions
question
Mathematics, 16.03.2020 18:31
question
Mathematics, 16.03.2020 18:31
Questions on the website: 13722362