Step 1 : Start
Step 2 : Read Number ,Set Sum = 0, Reverse = 0
Step 3 : if Number > 0 go to Step 4
else go to Step 8
else go to Step 8
Step 4 : Reminder = Number % 10
Step 5 : Reverse = Reverse * 10 + Reminder
Step 6 : Number = Number / 10
Step 7 : Sum = Sum + Reminder , go to Step 3
Step 8 : Print Reverse , Sum
Step 9 : Stop
No comments:
Post a Comment