Problem solving

I would compute all ~90 values of 10^N-N. I'm guessing it's hard to divide numbers that big so I'd make a lookup table on multiples of 170. How did I do? This might be overly complicated.

Op here, nobody has the answer yet

This would have been a non calculator paper for teenagers, comon Veeky Forums really??

I told you how to do it you fucking piggot. do the work yourself

20, 39, 58, 77, 96

for N from 10 to 99
if ((10^N - N) mod 170 is equal to 0)
print N;
end
end

this but add the digits of 10^N-N instead, takes like 2 lines more

good luck computing 10^N - N

This is correct.

#include

void main(void)
{
int n,nines,tens,ones;

for( n=10; n

That's a 100 digits number at most, a microwave with a big number maths library will have no problem with it