aboutsummaryrefslogtreecommitdiff
path: root/rcc-legacy/tests/sysy_lvX/075_reverse_number.sy
blob: 91cb38c3dd1b8c6fde2e3da9fe367987c8df0ebf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
int main()
{
	int x,digit,rev;
	rev=0;
	x=12345;
	while(x>0)
	{
	   digit=x%10;  
	   putint(digit);
	   x=x/10;	
	} 
	return 0;
}