I have a task:
Find all natural three-digit numbers, each of which has the following properties:
- the first digit is three times less than the last digit;
- the sum of the number itself, with the number resulting from the permutation of the second and third digits, is divisible by 8 without a remainder.
I have done only with the first property ... with the second I do not know how to do ...
var i,a,p,b,c,o : integer; begin for i:=100 to 999 do if i div 100*3=i mod 10 then writeln(i); end.