this is my piece of code i could have done it without function but i wante to try it out with function only can you please tell me what i am doing wrong here
Convert fahrenite to celsius
there are many syntax error in this code
cin>>min>>endl;
cin>>max>>endl;
cin>>t>>endl;
using cin we take input
endl is not take as input
so correct statement will be
cin>>min;
cin>>max;
cin>>t;
Mistake 2
cout<<CtoF(min, max, t);
this is also incorrect because return type of function is void
correct statement is
CtoF(min, max, t)
just call function
Modified Code