【题目描述】
编写函数实现对整数进行分解。具体要求是:输入若干个大于2的正整数,如果该数是偶数,则将其分解为两个素数(只需找出第一对素数)并输出;如果输入的奇数,则输出“××× is odd number!” ;输入为0时程序结束。只有1和它本身这两个因数的自然数叫做素数,0和1既不是素数也不是和数。
其中已经给出了部分代码,请你编写函数,将代码补充完整。只提交你写的函数。
部分代码如下:
#include <stdio.h>
/******函数写在此处******/
int main()
{
int m, c, i;
for(m = 1;; m++)
{
scanf("%d", &c);
if(c == 0) break;
if(c % 2 == 0)
{
for(i = 2; i <= c - 2; i++)
&n