When I run the result is zero, except for -5. I checked, it has nothing to do with the last line.
#include <iostream>
using namespace std;
int main ()
{
    int x;
    float E;
    cin >> x;
    if((float)x!=-5)
    {
        E=(x+3)/(x+5);
        cout << "Valoarea expresiesi este: " << E;
    }
    else 
        cout << "You cannot divide by zero";
    cin.get();
    return 0;
}
What did I miss? Thank you.
 
     
     
     
     
     
     
    