%ExpTaytd
x=input('x value = ');
nterms=input('number of terms in series = ');
s=1;
term=1;
data=[0 s];
for k=1:nterms
   term=x*term/k;
   s=s+term;
   data=[data;k s];
end   
