标签:整数 style scan pre class alt div new ret
#include<stdio.h> int main() { int num1,num2; int result=0; scanf("%d%d",&num1,&num2); result=MergeData(num1,num2); printf("%d",result); } int MergeData(int num1,int num2){ int newnum=0; newnum=num1%10*1000+num2%10*100+num1/10*10+num2/10; return newnum; }
标签:整数 style scan pre class alt div new ret
原文地址:http://www.cnblogs.com/sunli0205/p/6062097.html