#include <stdio.h>
#include <conio.h>
void main()
{
int m;
int n;
int multi;
printf("enter value : ");
scanf ("%d", &m);
printf("enter value of multiply : ");
scanf ("%d", &n);
multi = multiply(m,n);
printf("the value of multiply : %d", multi);
}
int multiply (int m, int n)
{
if (n == 1)
return m;
else
return m + multiply(m,n-1);
}
hi,
im doing coding about recursive, im not sure its recursive or not.
can someone have a look at it.
thank you