Blaise9914 Blaise9914
  • 28-02-2024
  • Computers and Technology
contestada

What is the order of the following code?

public static int f(int n)
int s = 0;
for (int i = 0; i < n; i++)
s = s + n;

return s;


1) o(1)
2) o(0)
3) o(n log n)
4) o(n)

Respuesta :

Otras preguntas

Which of the following is the best demonstration of the fundamental attribution error? A. Polly believes that her father is smart because he explained the math
system of linear equations can have how many solutions?
how do you solve polyynomials
What is the equation of the line that is parallel to the given line and passes through the point (−4,−6 )?
Can someone help me paraphrase this? From the conditions of frontier life came intellectual traits of profound importance. The work of travelers along each fron
The arc corresponding to a central angle of 35 in a circle of radius 10 feet measures _____ feet. Round your answer to two decimal places
What is the function of an arrow ( -7) and a plus sign ( ) in a chemical equation?
According to Pi, two of the biggest contradictions of life on the lifeboat were boredom and terror hunger and thirst fatigue and anxiety
how do we calculate velocity?
After an unequivocal experience of the inefficiency of the subsisting federal government, you are called upon to deliberate on a new Constitution for the United