Beginner need 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 ..
Last edited on
Anyone that can help ??
closed account (Dy7SLyTq)
isnt sigma

int
Ʃ expression
start
?
a - d^0-d^1-d^2.....- d^s= 0
therefore input is a and d , I want the program to subtract for me and stop until it reach 0 . but how do i do that , and how do i get s ?
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.