张涛6
2016-11-29 21:47
三位数反转输出
#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); }
C语言入门
926025 学习 · 20793 问题
相似问题