Write a program that input four-digit number, then prints the number with its digits reversed .
寫一個輸入4位數字,反轉輸出這個數字的值
Example input:
5455
Example output:
5545
5400
45
Hidden content!#include * * ** * * int main(){ ** * * * * * * * * * * ** * * * * * * * * * * a,r;* *** * ***** * * * **** * ***** *** * * * &a);* * * *** * * * * * * * * *** * = (a % 10)*1000; *** * ** * * * * * ** * * = r + ((a % 100)/10)*100;