程序填空题 给定函数 fun 的功能是:从低位开始取出整型变量 s 中奇数位上的数,依次构成一个新数放在 t 中。高位仍在高位,低位仍在低位。 例如,当 s 中的数为: 7654321 时, t 中的数为: 7531 。 请填写的空白处,使它能得出正确的结果。 注意:不要改动 main 函数,不得增行或删行,也不得更改程序的结构。 #include
/************found************/ int fun ( ) { int t, sl=10; t = s % 10; while (s > 0) { s = s/100; t = s%10 * sl + t; /************found************/ ; } /************found************/ ; } main() { int s, t; printf("\nPlease enter s:"); scanf("%d", &s); t=fun(s); printf("The result is: %d\n", t); }