error: expected primary-expression before '<=' token HELP!

#include <iostream>
#include <cmath>
using namespace std;

int main()
{
float a;
float p = 10000;
float r = .01;

for(int day = 1; <=20; day++)
{
a = p * pow(1+r,day);
cout << day << " ------- " << a <<endl;

}

}
for(int day = 1; <=20; day++)What is less or equal than 20?
And? What the purpose of that video. (There are no errors BTW)

YOu have <=20 in the middle of the for statement, so tell, what is less or equal than 20? a? p? r? day? pow? std?
This is from where i got the code.But for him this worked plss watch it!
In the video he typed the same <=20; this is what he typed!
No, he did not. Watch it closely. You are missing something.
Topic archived. No new replies allowed.