Home > Back-end >  The pta first always
The pta first always

Time:12-31

First why not consult the

CodePudding user response:

 # include & lt; stdio.h> 

Void show_digit (num);

Int main (void)
{

Long n;

The scanf (" % ld ", & amp; N);

Show_digit (n);

return 0;
}

Void show_digit (num)
{
If (num==0)
return;

Show_digit (num/10);
Printf (" % ld, "num % 10);
}

For your reference ~

CodePudding user response:

Modified as follows, for your reference:
 # include 
Int main (int arg c, char * argv [])
{
Long n, j, a, b;//I,
The scanf (" % d ", & amp; N);
If (n==0) printf (" % d ", n);
A=b=n;
J=1;
While (b> 9) {
B=b/10;
J *=10;
}
for(; J> 0; J/=10) {
B=a/j;
A=n % j;
Printf (" % d ", b);
}

return 0;
}

CodePudding user response:

Write too wordy simple point directly to the point:

CodePudding user response:

The building Lord at the end of your code if there are any nonzero but with zero input will be very embarrassed,
  • Related