早教吧 育儿知识 作业答案 考试题库 百科 知识分享

程序运行后sum的值为什么是21Intk=0,sum=0;Inta[3][4]={1,2,3,4,5,6,7,8,9,10,11,12};for(;k

题目详情
程 序运行后sum的值 为什么是21
Int k=0,sum=0;
Int a[3][4]={1,2,3,4,5,6,7,8,9,10,11,12};
for(; k
▼优质解答
答案和解析
1.#includelong fun(long int x){ long ret=0;while(x){if(x%10%2){ret= ret*10+ x%10;}x=x/10;}return ret;}void main(){long a,b;printf("Please input a long int num:");scanf("%ld",&a);b=fun...