#include main() { float Base, Total; int Power, x; printf("Input the base: "); scanf("%f", &Base); Total = Total + Base; printf("\nInput the exponent: "); scanf("%d", &Power); for(x = 0; x < Power; x++) // for (x = 0; NumbersAmount < 30; x++) { if(x == Power) { printf("%f", Base); printf("^%d", Power); printf(" is equal to %f", Total); break; } else { Total = Total * Base; } } }