三位数反转输出
#include<stdio.h> int main(){ int num = 123; int first,second,third; first = num/100; second = num/10%10; third = num%100; int reverseNum; reverseNum = third *100+second*10+ first ; printf("The reverse number of %d is %d.\n",num,reverseNum); }