I am totally lost on this question

Pages: 12
the total for n days is pow(2,days)-1.


Almost, try .01*(pow(2,days)-1) to get it in dollars.
red line under pow..can't use it
right, I keep forgetting that. include "math.h"
Last edited on
i included cmath already still
I tried it with math.h and it works. However, I don't know why it won't work with cmath.
are you using namespace std?
Topic archived. No new replies allowed.
Pages: 12