. Find Sum of series

#include<stdio.h>
#include<conio.h>
void main()
{
    int x, n, i, j, p=1, s=0, f=1;
    clrscr();
    printf("Enter value of x: ");
    scanf("%d",&x);
    printf("Enter value of n: ");
    scanf("%d",&n);
    for(i=0;i<=n;i++)
    {
        for(j=1;j<=i;j++)
            p=p*x;//find power
        for(j=1;j<=i;j++)
            f=f*j;//find factorial
        s=s+p/f;
        p=f=1;
    }
    printf("Sum of series is: %d",s);
    getch();
}
Enter value of x: 10
Enter value of n: 2
Sum of series is: 61