Which loop prints the numbers 1, 2...100?
2 answers:
Answer:
while (c <= 100):
print (c)
c = c + 1
Explanation:
We can cancel out the while loops with ' < ' because then it won't print when C is 100.
while (c <= 100):
print (c)
c = c + 1
Is probably right because unlike the other while loop with ' <= ' it has a print statement before the C = C + 1 which means look at this:
C = 1
print(c)
C = C + 1
So when it's run 1 is printed
But when doing the other while loop:
c = 1
while (c <= 100):
print (c)
c = c + 1
C = 1
c = c + 1
print(c)
It prints 2 because it added 1 to C first before actually printing it.
Answer:
Abcdefghijklmnopqrstuvwxyx
Explanation:
You might be interested in
Answer:
Never heard of that lol
The answer is a rectangle.
Answer:
Sameee
Explanation:
The base-10 value of 52010 is equal to base-16 value of 20816.