saadhamza
07-04-2009, 11:40 PM
why doesnt this code work?
#include <iostream>
#include <cmath> // or math.h
int main()
{
using namespace std;
double area;
cout << "Enter the floor area, in square feet, of your home: ";
cin >> area;
double side;
side = sqrt(area);
cout << "That's the equivalent of a
<< " feet to the side." << endl;
cout << "How fascinating!" << endl;
return 0;
}
#include <iostream>
#include <cmath> // or math.h
int main()
{
using namespace std;
double area;
cout << "Enter the floor area, in square feet, of your home: ";
cin >> area;
double side;
side = sqrt(area);
cout << "That's the equivalent of a
<< " feet to the side." << endl;
cout << "How fascinating!" << endl;
return 0;
}