mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-04-13 16:29:48 +08:00
Delete factorial.cpp
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
#include<iostream>
|
||||
using namespace std;
|
||||
|
||||
int main()
|
||||
{
|
||||
int n;
|
||||
cout<<"Enter number = ";
|
||||
cin>>n;
|
||||
int num=1;
|
||||
for(int i=1;i<n;i++)
|
||||
{
|
||||
num*=i;
|
||||
}
|
||||
cout<<"Factorial of number is = ";
|
||||
cout<<num<<endl;
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user