Question: convert the following code from recursive function to iteration ((Function)) (((C program))) #include int sum_n(int n) { if (n==1) return n; else return n+sum_n(n-1); }
convert the following code from recursive function to iteration ((Function)) (((C program)))
#include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
