#include #include //program that takes two numbers and multiplies them together by way of counting //base = first number/base number, power = second number/power //atrack = add tracking number //mtrack = multiplier tracking number //etrack = expo track number //prod = final product //mval is value for mult part of function //aval is value for add part of function int main( ) { int base; int power; int prod; int atrack = 0; int mtrack = 1; int etrack = 0; fprintf(stdout, "Enter your base number\n"); fscanf(stdin, "%d", &base); fprintf(stdout, "Enter your power number\n"); fscanf(stdin, "%d", &power); prod = base; int mval = base; int aval = base; if (base == 0) { prod = 0; fprintf(stdout, "Your Answer is: %d", prod); } else if (power == 0) { prod = 1; fprintf(stdout, "Your Answer is: %d", prod); } else if (base == 1) { prod = 1; fprintf(stdout, "Your Answer is: %d", prod); } else if (power == 1) { prod = base; fprintf(stdout, "Your Answer is: %d", prod); } else { for(etrack = 1; etrack < power; etrack++) { for(mtrack = 1; mtrack < mval; mtrack++) { for(atrack = 0; atrack < aval; atrack++) { prod = prod++; } } aval = prod; } fprintf(stdout, "Your Answer is: %d", prod); } return(0); }