Errors I do not understand

I'm trying to make a program that makes a table of conversion from Degrees Celsius to Degrees Rankin, where the user inputs the starting temperature and the increment between lines. There must be 25 lines in the table. I have the following:
--------------------------------------------------------------------------------
#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;
int main ()
{
double TC=0, TR, TCInc, TF;
cout<<"Enter temperature in degrees Celsius: " ;
cin>>TC;
cout<<"Enter the degrees Celsius increment: " ;
cin>>TCInc;
for(TC<=TCI*25) LINE 12
{
TC=TC+TCInc;
TF=(9/5)*(TC)+(32);
TR=TF+459.67;
cout<<" "<<TC<<setw(20)<<TR<<endl;
}
system("pause");
return 0; LINE 20
}
------------------------------------------------------------------------------
I get the following errors:

Line 12: expected `;' before ')' token
Line 20: expected primary-expression before "return"
Line 20: expected `)' before "return"
You're using the for loop wrong. It looks more like a while loop.

See this page for the difference between for/while loops: http://cplusplus.com/doc/tutorial/control/
Topic archived. No new replies allowed.