I have no idea why this is not giving me any numbers.
It is supposed to be reading x=__ y=___ but instead it is only giving me my first cout .
It is supposed to be reading x=__ y=___ but instead it is only giving me my first cout .
Code:
//Imani Jones' Output of Her First Program
#include <iostream>
#include <cmath>
using namespace std;
int main ()
{
cout<<"My name is Imani Jones and this is the output of my first program."<<endl<<endl;
double x, y;
for (x=-3.5;x=3;x=x+0.5)
{ y=((-4*x)*x*x+(4*x)*x+(25*x)-25)/ ((sqrt(4*x)*x+2)+3* abs(x+1.5));
if (x<0)
cout<<" Y is negative "<<endl;
if (x==0)
cout<< "Y is positive "<<endl;
if (x>0)
cout<< "Y is positive "<<endl<<endl;
}
std::cout <<"My First Program is Complete"<< std::endl;
system ("pause");
return 0;
}
Comment