C program to calculate exponential number.