W.A.P using while loop to reverse the digits of the number. For example the Number 1234 Should be written as 4321.

W.A.P using while loop to reverse the digits of the number. For example the Number 1234 Should be written as 4321.



Output 1:

Enter the number=12345

After reverse the number=54321

Output 2:

Enter the number=56145

After reverse the number=54165

Post a Comment

0 Comments