25 lines
393 B
C++
25 lines
393 B
C++
#include <iostream>
|
|
|
|
#include "fonctions.h"
|
|
|
|
using namespace std;
|
|
|
|
int main() {
|
|
float root;
|
|
float a;
|
|
unsigned int n;
|
|
|
|
do {
|
|
cout << "Saisir a" << endl;
|
|
cin >> a;
|
|
} while (a < 0);
|
|
|
|
cout << "Saisir la nombre d'itérations" << endl;
|
|
cin >> n;
|
|
|
|
root = racine_carree(a, n);
|
|
|
|
cout << "Racine de " << a << " = " << root << endl;
|
|
|
|
return 0;
|
|
} |