Assignment 1

8. Ask for a number (5 digit) and output the reverse order of the number. ex. 23765 === > 56732

CPE102L
1Q1819
start

input num

if(num>=10000 and num<=99999)
	while(num!=0)
		temp=num%10
		print temp
		num=num/10
	endwhile
else
	print “out of range”
endif

end