Art, asked by root24900, 8 months ago

write a program to reverse a give number

Answers

Answered by hrusikesh29102
0

Answer:

PROGRAM C

Explanation:

I AM NOT SURE...HOPE IT HELPS

Answered by thelegendary77
1

Answer:

if you want more digit program you only add int d , int e and so on how many you want and multiply in the last second step as I do adding more zeros with the number of digits taken by you

Explanation:

class xyz

{

public static void main (int n)

{

int sum = 0;

int a = n%10;

n = n/10;

int b = n%10;

n = n/10;

int c = n/10;

sum = 1000*a +100*b + 10*c+1*n

}

{

System. out. println("The reverse no. is"+sum);

}

}

Similar questions