First commit
This commit is contained in:
25
IUT/Info1/TD/Exercices/8.3_racines_carree/main.cpp
Normal file
25
IUT/Info1/TD/Exercices/8.3_racines_carree/main.cpp
Normal file
@@ -0,0 +1,25 @@
|
||||
#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;
|
||||
}
|
||||
Reference in New Issue
Block a user