Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
-
answerhappygod
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Post
by answerhappygod »

- Int F Int X Int R If R 0 Return 1 Else Return X F X R 1 Int Main Int P P F 3 4 Printf I P Th 1 (56.99 KiB) Viewed 13 times

- Int F Int X Int R If R 0 Return 1 Else Return X F X R 1 Int Main Int P P F 3 4 Printf I P Th 2 (56.99 KiB) Viewed 13 times
int f(int x, int r) { if (r==0) return 1; else return x*f(x,r-1); } int main() { int p; p=f(3,4); printf("%i ", p); } The output:.....
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!