Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as C++ by omg ( 14 years ago )
#include<iostream>
using namespace std;

int main()
{
 int a,n,answer=1;
 
 cout<<"enter n which you want to find its n!"<<endl;
 cin>>n;
 cout<<endl;

 for(a=1;a<=n;a++)
 {
  answer=answer*a;
 }

 cout<<"n! is "<<answer;
 system&#40;"pause"&#41;;
 
 return 0;
}

 

Revise this Paste

Your Name: Code Language: