Solution Task 7, Sheet 5


I think the following solution should be == and not !=,
because the task states “check IF a positive integer has digit sum 7”. Since b holds the digit sum result of quer, the boolean comparison should yield true in case b == 7 and false if not.

Currently, with that solution, it would yield false for b=7.


Thanks in advance,