num = int(input())
      reversed_num = 0
      while num != 0:
          digit = num % 10
          reversed_num = reversed_num * 10 + digit
          num //= 10
      print("Reversed Number: " + str(reversed_num))
      
      Python language logo

      numRev

      learning
      programming

      reversing a given integer

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.