logo

Crowdly

Browser

Add to Chrome

Якщо функція обчислення факторіала n має прототип int fact(int n) , то як буд...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Якщо функція обчислення факторіала n має прототип int fact(int n) ,

то як буде виглядати запис визначення функції

з використанням рекурсії?

1. {if (n == 1 || n == 0) return 1;

      else return n * fact (n -1);}

2. {if (n == 1 || n == 0) return 1;

           else return fact ( n );}

(C++)

More questions like this

Want instant access to all verified answers on moodle.chnu.edu.ua?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome