Here is some code for an integer variable n:
while (n > 0)
{
n = n/10; // Use integer division
}
I am trying to find the worst-case time analysis for this loop. O(n) is new to me and I am having difficulty with it. Wouldn't this just be O(n)?