c++ trouble

trying to write a program to convert centigrade to fahrenheit using a loop. here is what i got so far:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <iostream>
using namespace std;

int main ()
{
	int feh, cen, degree;
	cout << "Enter a centigrade temperature between 0-20.\n\n";
	
	cout << "Centirgrade		Fahrenheit\n";
	cout << "-----------------------------\n";

	for (degree = 1; degree <= 20; degree++)
		cout << degree << "\t\t" << (feh = 9/5(cen) + 32) << endl;
	return 0;
}
	

got a message that says: term does not evaluate to a function taking 1 arguments
what does that mean and how do i change it?
int choice;
float temp,ctemp;
cout<<"1.Fahrenheit to Celsius";
cout<<"2.Celsius to Fahrenheit";
cout<<"Enter ur choice:";
cin>>choice;
if(choice==1)
{
cout<<"Enter the temperature in Fahrenheit:"
cin>>temp;
ctemp=(temp-32)/1.8;
cout<<"Celsius is:"<<ctemp;
}
else
{
cout<<"Enter the temperature in celsius:"
cin>>temp;
ctemp=1.8*temp+32;
cout<<"Fahrenheit is:"<<ctemp;
}
Topic archived. No new replies allowed.