Computer Science, asked by sidverma834, 1 year ago

Write an algorithm and draw a flowchart to reverse the given number

Answers

Answered by ankit0208
3
please specify a language to be used. A typical scenario would be, let say we have a number N whose reverse is to be found out.
we divide the N by 10. we store the reminder R somewhere and again divide the quotient left by 10 and again appending the reminder R left to the previous one and again dividing the quotient by 10. continue this process till u get R=0. you have to use while loop for it. And the time complexity should be n.
Similar questions