please tell the answer of this....
Attachments:
Answers
Answered by
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 ❤❤❤❤
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
Answered by
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
Similar questions