Ok, i just put .5555 instead of 5/9, how would you code 5/9 to work?
double get_celsius(double fahrenheit)
{
double x = 5/9,
result;
result = (fahrenheit - 32) *...
Type: Posts; User: Micolejr2
Ok, i just put .5555 instead of 5/9, how would you code 5/9 to work?
double get_celsius(double fahrenheit)
{
double x = 5/9,
result;
result = (fahrenheit - 32) *...
My output for the variable celsius is 0 everytime. I can't figure it out =(. Can anyone spot what is wrong?
#include <iostream>
using namespace std;
double get_celsius(double);
int...
Thank you for the tip, I will make sure to do that in the future =)
Thank you. The Do-while loop worked perfectly, I also had my math wrong lol =).
Anyways, heres what the code is now.
#include <iostream>
using namespace std;
learning functions and I am having trouble with some local variables. I keep getting "warning C4700: uninitialized local variable 'y' used", same for the variable x. Are my loops in combinations...