Cant solve the syntax error.
I have a program that is supposed to convert temperature i celcius to temperature in fehrenhiet. I get a syntax error on the line where the user is supposed to input the temperature in celcuis.
I cant seem to figure out what is wrong.
I keep getting error: error C2059: syntax error : ';'
Any help would be appreciated. Thanks in advance.
Code:
/* program to convert temperature in celcius
to temerature in fahrenheit */
#include <iostream>
int c; //temperature in celcius
int f = (9/5 * (c)) + 32; //temperature in fahrenheit
int main()
{
std::cout << "This program will convert your temperature in celcius to fahrenheit." "\n" "\n";
std::cout << "What is your current temperature in celcius? ";
std::cin >> c >>; //user inputs temerature in celcius
std::cout << "Your temperature in fahrenheit is " << f << "." " Now go be tell your friends.";
//program converts output to fahrenheit
return (0);
}