问题描述: 编写一个判断奇偶数的函数,要求在主函数中输入一个整数,通过被调用函数输出该数是奇数偶数的信息. 1个回答 分类: 综合 2014-11-23 问题解答: 我来补答 我用C语言编一下啊.其他语言类似!#includevoid sort(int n){if(n%2==0)printf("the number is double \n");elseprintf("the number is odd\n");}int main(){int n;printf("please input a number:\n");scanf("%d",&n);sort(n);return 0;} 展开全文阅读