View Single Post
  #1  
Old 26-08-2008, 11:17 AM
.BZU.'s Avatar
.BZU. .BZU. is offline


 
Join Date: Sep 2007
Location: near Govt College of Science Multan Pakistan
Posts: 9,693
Contact Number: Removed
Program / Discipline: BSIT
Class Roll Number: 07-15
.BZU. has a reputation beyond repute.BZU. has a reputation beyond repute.BZU. has a reputation beyond repute.BZU. has a reputation beyond repute.BZU. has a reputation beyond repute.BZU. has a reputation beyond repute.BZU. has a reputation beyond repute.BZU. has a reputation beyond repute.BZU. has a reputation beyond repute.BZU. has a reputation beyond repute.BZU. has a reputation beyond repute
Smartass Assignment About Factoriales calculation Using C++ programming

This is Assignment Given By the Mam Sidra Malik...



#include <iostream>
using namespace std
;
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
;
}

__________________
(¯`v´¯)
`*.¸.*`

¸.*´¸.*´¨) ¸.*´¨)
(¸.*´ (¸.
Bzu Forum

Don't cry because it's over, smile because it happened
Reply With Quote