// Programme test2.cpp // g++ test2.cpp -o test2cpp; ./test2cpp #include #include int main() { int B = 1; while (B > 0) { std::cout << "Borne:? "; std::cin >> B; int I = 1; while (I <= B) { int C = std::pow(I,2); float R = std::sqrt(I); std::cout << "I= " << I << " I^2= " << C << " I^1/2= " << R << "\n"; I++; } } std::cout << "Fin du programme test2.cpp\n"; return 0; }