Need help correcting CODE


The following program takes in a temperature value in Celsius and converts it to Kelvin. This code has many errors in it. Find the errors, list them, and correct the code.

double ctok(double c)
{
int k = c+273.5
return int
}

int main()
{
double c = 0
cin>>d;
double k = ctok("c")
Cout<<k<<endl;
}
well, d was never declared. Cout needs to be cout, lowercase c.
Topic archived. No new replies allowed.