x Turn on thread page Beta
 You are Here: Home >< Maths

# d1 algorithm watch

1. I'm just slightly confused about line 30, so would I just skip line 40.

Could someone show me how to do the question please because I don't understand the markscheme.
2. line 30 tests for evenness.. if A is even then skip line 40
3. i don't do D1 but I think it means if the result of INT(A/2) is the same as A/2 (without INT) then go to line 50. so for example, since A = 20, INT(20/2) = 10 which is the same as 20/2 = 10, it will go to line 50. but if A was not an integer divisible by 2 then INT(A/2) would return a different value than A/2 (e.g. if A = 7, INT(7/2) = 3 but 7/2 = 3.5).

TSR Support Team

We have a brilliant team of more than 60 Support Team members looking after discussions on The Student Room, helping to make it a fun, safe and useful place to hang out.

This forum is supported by:
Updated: December 25, 2014
Today on TSR

Poll
Useful resources

### Maths Forum posting guidelines

Not sure where to post? Read the updated guidelines here

### How to use LaTex

Writing equations the easy way

### Study habits of A* students

Top tips from students who have already aced their exams