Procedural/imperative programming - Algorithm -


Please help me understand that if <0> x = 0,1,2,3

  y  

Each looping step multiplied by 2, so you have 2 values Yes, 4,8,16 ... (or usually 2 ^ N).

r is initially 1, and if you add z, you get 3,7, 15, 31 (usually 2 ^ (n 1) - 1)

The loop will be left for X = 0, hence R1 remains

The loop will be for X = 1 ... Yuh ... loop one time, you get 3 etc.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -