ya i could use some help. everything is compiled but it doesnt run like its suppose to. I get a long list of 1.#INF. it doesnt even let me exit like its suppose to.
//Lab 10 Problem 1
#include<iostream>
#include<cmath>
using namespace std;
int main()
{
//variables defined here
float x, y, stop, start;
char exit_variable;
//data input section
cout << "Enter in the value for x " << x << "\n";
cout << "Enter in the value for y " << y << "\n";
cout << "Enter in the value that you want x to start at " << start << "\n";
cout << "Enter in the value that you want x to stop at " << stop << "\n";
//math stuff
y = (pow(x,3) - 2 * x + 10);
//Do loop
x = start;
do
{
cout << " The answer to the equation is " << y << "\n";
x=x+1;
}
//While loop
while (x = stop);
cout << "The x value has reached the stopping point \n" ;
//data output section
cout << "Press the letter e to exit ";
cin >> exit_variable;
//thats the end
}