#include<iostream>
using namespace std;
int factorial (int a){
if(a > 1){
return a * factorial(a-1);
}
else
return 1;
}
int main(){
int n;
cin>>n;
cout<<"The factorial of "<<n<<" is "<<factorial(n);
}
SELECT ROUND((AVG(Salary) - AVG(CAST(REPLACE(Salary, 0, '') AS int)))+1) FROM Employees;
No comments:
Post a Comment