Machst eine for-schleife die bis 15 zählt und die Potenz von der Variable ausgibt.

Wichtig: Für meine Methode include <math.h> für die Pow funktion

pow - C++ Reference (cplusplus.com)

Beispiel:

for(int i = 0; i != 15; i++) {

int zahl = pow(i, 3);

std::cout << "3-Potenz von" + i + ": " + zahl << std::endl;

}

...zur Antwort