Skip to content
Snippets Groups Projects
Commit 7975c960 authored by paul.albuquer's avatar paul.albuquer
Browse files

Corrected few typos

parent 96d37991
No related branches found
No related tags found
No related merge requests found
Pipeline #35222 passed
--- ---
title: "Reécursivité, et représentation des nombres" title: "Récursivité et représentation des nombres"
date: "2024-10-29" date: "2024-10-29"
--- ---
...@@ -301,11 +301,11 @@ double pow(double x, int n) { ...@@ -301,11 +301,11 @@ double pow(double x, int n) {
if (0 == n) { if (0 == n) {
return 1; return 1;
} }
double p = c; double p = x;
for (int i = 1; i < n; ++i) { for (int i = 1; i < n; ++i) {
p = p * x; // x *= x p = p * x; // p *= x
} }
return x; return p;
} }
``` ```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment