Question: Student Name 2. The fotl owing program can be used to calculate the value of according to equation 2 2 3 3 #inelude main ()
Student Name 2. The fotl owing program can be used to calculate the value of according to equation 2 2 3 3 #inelude main () "math.h long n-30000 double -0.0 long 1 for (i-1ic nii+) printf ("pi-vi" The following recursive function is used to convert a positive integer n to a string When converting the integer, the digits are reversed. For example, 483 is converted to string 384". 3. void convert (char "a, int n) int i=0; ien/10 ra : I/ the last digit of current number if(i-0) convert( 1/ pass the address of next character and value of current number else main) f char str(10] convert (str,123) printf("the converted str is %s ",str)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
