题目内容
下面程序的功能是:fun函数实现将整数n的值逆序转换,转换后的值通过函数值返回,请填空。#include int fun(int n){int m, y = 0;if (n >= 0)m = n;elsem = -n;while (m != 0) {y = y * 10 + m % 10;m = _____(1)_____ ;}y = (n >= 0) ? y : -y;_____(2)______ ;}int main(){int m1, m2;scanf("%d %d", &m1, &m2);printf("%d的逆向是%d\t", m1, fun(m1));printf("%d的逆向是%d\n", m2, fun(m2));return 0;}
查看答案
搜索结果不匹配?点我反馈
更多问题