Good day, I need help with my code. It's very simple and I was compiling it successfully at school, but at home I'm having problems with it.
Here is the code.
http://gyazo.com/dc78a310f529374338a244227b56215f
and
#include <cmath>
#include <iostream>
#include <conio.h>
using namespace std;
int main ()
{
float a, b, c;
cout « "Enter a" «endl;
cin » a;
cout « "Enter b" «endl;
cin » b;
cout « "Enter c" «endl;
cin » c;
if (abs(a-c) == abs(a-b))
cout « "On the same length" « endl;
else if (abs(a-b) < abs(a-c))
cout « "Point B is closer, AC = " « abs(a-c) « ", but AB = " « abs(a-b) « endl;
else if (abs(a-b) > abs(a-c))
cout « "Point C is closer, AB = " « abs(a-b) « ", but AC = " « abs(a-c) « endl;
getch();
}