Draw a flowchart to find the reverse of a number
Answers
Answered by
1
n=0
1: get the lowest digit (d) of the number by using %10
multiply n by 10 and add d
divide the original number by 10
if number is more than 0 go to 1
in C:
int o,r;
r=0
o=1234;
while(o){
r=r*10+o%10;
o/=10;
}
Similar questions