Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - C++ uses recursion to convert an integer N into a string. For example, if you input 483, the string "483" should be output. The number of digits in N is uncertain and can be any number.
C++ uses recursion to convert an integer N into a string. For example, if you input 483, the string "483" should be output. The number of digits in N is uncertain and can be any number.

Write a code that meets your requirements, see Basic

But some can be changed:

#includes

int GNN( int E) {

int J;

int = 1;

for (J = 0; < p> {

last = 10 *last;

}

return to previous;

}

Invalid fun(long N, N)

{

Interpretation; BR />(N <1)

{

printf("\"");

}

Other

{

Next=N/GNN(N-1 );

printf("%d", next);

fun(N%GNN(N-1),N-1);

}

}

Invalid main()

{

Long N;

printf( "Please enter the number to convert:");

N = 1;

for long int k = N/ 10;

(INT I = 0, K = 0; I++)

{

K = k/10;

N++;

}

printf("Conversion output:"); /> printf("Please\"");

Fun( n, n);

printf("\n");

// getch();

}