This is the java programming. Please tell the output of this question
Attachments:
Answers
Answered by
1
Answer:
20 17 14 11 8 5
Explanation:
k = 20;20<=5;k = k-3 condition true
print k = 20
Then it goes to for loop k = k-3 ,k = 20-3
17 <= 5 condition true
print k = 17 and so on....
The loop executes untill 5<=5
Atlast the k value 5 is printed
After that the k value will not satisfy the condition k = 5-3 k = 2
2 >=5 fails
Similar questions
Math,
5 months ago
World Languages,
5 months ago
Accountancy,
5 months ago
Social Sciences,
11 months ago
English,
11 months ago