I am at beginning stage of VC++,and stumped on this question.Find the total of number of factorials ,user inputs.
For eg. user says 5,
ans = 1!+2!+3!+4!+5!
I have done this,but confused where I am going wrong....
cout<<"enter any integer"<<endl;
cout<<"u have entered nonnegative integer"<<endl;
else if (num==0)
else if (num>0)
cout<<"the value of mathematical constant is:"<<answer<<endl;
I will be really grateful,if anybody points me out the right track.