Thread: C++ Help
View Single Post
Old 11-07-2008   #4
Kingroudy
Super Moderator
 
Kingroudy's Avatar
 
Last Online: 08-01-2019
Join Date: May 2006
Posts: 5,580
Thanks: 1,888
Thanked 2,653 Times in 1,593 Posts
Groans: 55
Groaned at 35 Times in 32 Posts
Default Re: C++ Help

1st exercise:
int n, nf=1;
cin>>n;
for(int i=1; i<=n, i++)
{
nf*=i;
}
cout<<nf

hayda L base taba3 L code.. it has been a full year i haven't touched c++, and i have an exam tomorrow so i can't stay long for this.
__________________
click on 'Groan' to switch to my left testicle.
Kingroudy is offline   Reply With Quote