Home > Back-end >  [C language help] recursive without return to add in the return of the difference?
[C language help] recursive without return to add in the return of the difference?

Time:03-30

 # include & lt; Stdio. H> 
#include
#include
/*
Function purpose: converting the input integer character
*/
Void trans (int n)
{

If ((n/10)!=0)
{
Trans (n/10); 483//input, output without return output 483, plus the return 4
}


Putchar (n % 10 + '0');
}

Void main ()
{
Printf (" hw 7.17 \ n ");
int n;
Printf (" do enter an interger: \ n ");
The scanf (" % d ", & amp; N);
If (n> 0)
{

Trans (n);
}
If (n<0)
{
Putchar (' - ');

Int abs_n=abs (n);
Trans (abs_n);
}


}


How is this to return a responsibility excuse me? It is best to something about execution, thank you!
  • Related