It works! Thank you so much! And for the idiot teacher remark, yeah, I guess his teaching methods are a little weird. He did give us notes for this week, but the notes were on loops and if statements and conditionals. Here I am posting my code; can you just make sure everything looks correct?
Code:
#include <stdio.h>
#include <math.h>
void main(void)
{
char string[256];
long int a,b;
printf( "Please enter your name:\t " );
fgets ( string, 256, stdin );
printf("Hello, %s\n", string);
printf("You will enter two numbers, and I will raise the first number\n");
printf("to the power of the second number!\n\n");
printf("Enter the first number.\t");
scanf("%d", &a);
printf("Enter the second number, which will be the exponent.\t");
scanf("%d", &b);
printf("Your total is %ld\n", (long int)pow(a,b));
system("Pause");
}
Thanks again for everyone's help!