This program simply states whether a number is positive, negative, or zero. However, after inputting a number nothing happens. It must be something stupid I'm missing, but I can't spot it.
#include <iostream>
#include <iomanip>
usingnamespace std;
int main()
{
double number;
cout << "This program will declare your number to be positive, negative or zero." << endl << endl;
cout << "Please type input your number." << endl;
cin >> number;
cout << endl;
if (number < 0)
cout << "Your number is negagtive." << endl;
if (number = 0)
cout << "Your number is zero." << endl;
if (number > 0)
cout << "Your number is positive." << endl;
cout << endl;
}