Computer Science, asked by Shreya2170, 11 months ago

please tell the answer of this.... ​

Attachments:

Answers

Answered by sanchari46
0
Heya Mate ur answer is....
As the condition is false so, the else statement gets printed. And thus, the answer is...
a=17-4

a=13

Hope it helps ❤❤❤❤

Shreya2170: How..... complete solution please
sanchari46: I gave
Shreya2170: there is a while loop also above..... so it will continue after printing 13
Shreya2170: I want the complete answer
rishitgrg: Hello
Answered by mn121
1

when a = 4 and b = 17

while(a!=b) is true

condition if(a>b) is false

a=b-a = 13

when a = 13 and b = 17

while(a!=b) is true

condition if(a>b) is false

a=b-a = 4

as we see here that the value of a again becomes 4 (its initial value) , so it is an endless loop


Shreya2170: yes.... then what we will have to write
mn121: it is an endless or infinite loop
mn121: thanks for marking brainliest...
Shreya2170: thanks for the answer
mn121: ur wlcm
Similar questions