C Programming Code Examples C > Mathematics Code Examples C Program to find exponent Power Series !! C Program to find exponent Power Series !! #include<stdio.h> #define ACCURACY 0.0001 int main() { int n, count; float j, term, sum; printf("\nEnter value of j :"); scanf("%f", &j); n = term = sum = count = 1; while (n <= 100) { term = term * j / n; sum = sum + term; count = count + 1; if (term < ACCURACY) n = 999; else n = n + 1; } printf("\nTerms = %d Sum = %f", count, sum); return 0; }