Two numbers are entered through the keyboard. Write a program to find the value of one number raised to the power of another.
int num1, index, result, temp; /* num2=index*/
printf("Enter the number:");
scanf ("%d", &num1);
printf("Enter the index:");
result = result*num1;
printf("%d raised to %d is: %d ", num1, index, result);
The file can be found at: