Computer Science, asked by Anonymous, 5 hours ago

NO SPAM
OR WILL BE REPORT​

Attachments:

Answers

Answered by S1mpleOp
2

Answer:

easy here is a function to do that:

int fact(int x){

if(x<=1)

return 1;

return x*fact(x-1);

}

or even easier

int fact(int x){

return x<=1? 1:x*fact(x-1);

}

plz mark me as brainliest

Similar questions