beaucoup de petites erreurs...
- include <iostream>
using namespace std;
int main()
{
double a, b ;
cout << "Please enter the border-number's interval \n";
cin >> a >> b; // Enter the numbers in a and b
int N = 1;
while (N <= 1) {
cout << "Please enter how much loop do you want to run \n";
cin >> N; } // Enter the number in N
double pas = (b-a)/N;
int x = a;
for(int i = 0;i <= N; i++) // The start of the loop
{
double fonction = -(3*x*x)+2*x;
cout << fonction << x;
x += pas;
}
}
Essaye comme ça pour voir...