Answer:
for (int h = k; h >= 0; h--)
Explanation:
From the list of given options, option C answers the question.
In the outer loop
Initially, k = 0
In the inner loop,
h = k = 0
The value of h will be printed once because h>=0 means 0>=0 and this implies once
To the outer loop
k = 1
The inner loop will always assume value of k;
So,
h = 1
This will be printed twice because of the condition h>=0 means 1>=0.
Since 1 and 0 are >=0; 1 will be printed twice
To the outer loop
k = 2
The inner loop
h = 2
This will be printed thrice because of the condition h>=0 means 2>=0.
Since 2, 1 and 0 are >=0; 2 will be printed thrice
To the outer loop
k = 3
The inner loop
h = 3
This will be printed four times because of the condition h>=0 means 3>=0.
Since 3, 2, 1 and 0 are >=0; 3 will be printed four times
Answer:
C
Explanation:
No explanation, self-explanatory. I used class main instead...
Answer:
Mouse
Explanation:
Input devices allow users to input something in the computer. For example keyboard allows users to type on the computer, or mouse allows users to click.
On the other hand output devices allow computers to output data. For example speakers allow us to hear the outputs of a computer.
Answer:
I want brainlyest though can I have it
Answer:
Programming is a set of instructions i.e. Input given by the user to the computer to perform a particular task and give the desired result i.e. output.
Final Answer
s=0
for i in range(1,26):
s=s+ i
print(s)
Explanation:
IF THE ANSWER IS CORRECT THEN MARK A BRAINLEST