Top
/
C++
/
Control
/
Loops
/
While-loops
/
Answer-while-2
Answer to Question while-2
int p = 1; int i = 1; while(i <= n) { p *= x; i++; }