public class man{
public static void Calc(int n){
if(n==1){
return 1;
}
int sum=n-1;
int fact=n*Calc(sum);
return fact;
}
public static void main(){
int n=5;
system.out.println(man.Calc(n));
}
}
public class man{
Get All The Latest Updates Delivered Straight Into Your Inbox For Free!
Hello, my name is Jack Sparrow. I'm a 50 year old self-employed Pirate from the Caribbean.
Learn More →
0 Comments