![]() |
Assignment About Factoriales calculation Using C++ programming This is Assignment Given By the Mam Sidra Malik... #include int main() { float sum,n,m,w,fact; m=100; sum=0; for (n=1; n<=m; n++) { fact=n; for (w=(n-1); w>=1; w--) { fact=fact*w; }sum=sum+(n/fact); } cout<<sum<<endl; return 0; } |
| All times are GMT +5. The time now is 11:09 AM. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.