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<stdio.h>int main() {* ** * **** * * * * ** * b[4], i; ** ** * ** ** * ** * * **** * ** * i<4; i++) {**** * * * * *** ** * * *** * ** **** * ** ** ** *** * * * * * * ** &b[i]);* ** * * * * * * * * * * * * ** * * * **** i>=0; i--) {** ** * * * ** * * * * ** * * * * ***** * * * * { ** * * * * * * * ** ** ** * * * * * * * **** ** ** * ** ** * * ** *** * * * * *** b[i]);* * * ** * * * * ***** * * * **** * *** * * ***** * *** *** ** * * * ** }
Hidden content!#include <stdio.h>#include <stdlib.h>int main(){* * ** ** * * *** * * * * a,b,c,d,e; ** ** * * * * ** ** *** * *** * ***** ** * *