I'm new to c++ and I'm learning the basics. I've made the following program but there is a logic error somewhere but I don't know where. its probably something silly but I cant find it.
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
double cost;
double area;
double bagsize;
cout << fixed << showpoint << setprecision(2);
cout << "enter the amount of fertilizer, in pounds, " << "in one bag: ";
cin >> bagsize;
cout << endl;
cout "enter the cost of the " << bagsize << " pound fertilizer bag: ";
cin >> cost;
cout << endl;
cout << "enter the area, in square feet, that can be " << "fertilized by one bag: ";
cin >> area
cout >> endl;
cout << "the cost of the fertilizer per pound is: $" << bagsize / cost << endl;
cout << "the cost of fertilizing per square foot is: $" << area / cost << endl;