Help

if a=sigma(d)^s
i know a-d^0-d^1-....d^s=0
but how to find s and how should i put into c++ command ?
this is a project due tonight , please help me out ..
a - d^0-d^1-d^2.....- d^s= 0
therefore input is a and d , I want the program to subtract for me then stop automatically until it reach 0 and output display s+1 ,but how do i do that ?
Topic archived. No new replies allowed.