#include <stdio.h> typedef int Number; int main() { Number NumberEntered = 0; Number PowerIdx = 0; printf("\nChoose a number for the calculation: "); scanf("%d", &NumberEntered); //Loop to calculate NumberEntered to different exponents for (PowerIdx = NumberEntered; PowerIdx > 0; PowerIdx--) { printf("%d to the 4th = %d", PowerIdx, (PowerIdx * PowerIdx * PowerIdx * PowerIdx)); printf(", cubed = %d", (PowerIdx *PowerIdx * PowerIdx)); printf(", squared = %d", (PowerIdx * PowerIdx)); printf(", to the 1st = %d\n", PowerIdx); } printf("Program Over.\n"); return 0; }