Question: What is the value of n and counter when code is executed? n=256; counter=1; while n ~=8 if rem (counter, 2) =0 n=n/2; else
What is the value of n and counter when code is executed? n=256; counter=1; while n ~=8 if rem (counter, 2) =0 n=n/2; else end n=n/4; counter-counter+1; end
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
