/*Write a program in C to print the following series's sum*/ //Series: 1+2^2+3^3+4^4+5^5+.....n^n = sum #include #include int main () { int n, i; unsigned long long int sum = 0; //larger data type than int printf ("\nEnter the limit or last digit (only base) of series: "); scanf ("%d", &n); for (i=1; i<=n; i++) { sum = sum + (unsigned long long int) pow(i, i); } printf("\nThe sum of the series = %llu", sum); return 0; }