#include <cstdlib>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
float a,b;
cout << "Please enter the first number\n";
cin >> a;
if(a > 1.8e+38)
{
cout << "fail.\n";
system("PAUSE");
return 0;
}
if(a < 1.8e-38)
{
cout << "fail.\n";
system("PAUSE");
return 0;
}
else cout << "\nPlease enter a number you wish to add to " << a << "\n";
cin >> b;
if(b > 1.8e+38)
{
cout << "fail.\n";
system("PAUSE");
return 0;
}
if(b < 1.8e-38)
{
cout << "fail.\n";
system("PAUSE");
return 0;
}
else cout << "\nThe sum of " << a << " and " << b << " is " << a + b << "\n\n";
system("PAUSE");
return 0;
}