求等差数列

幼儿园老师给学生由前向后发糖果,每个学生得到的糖果数目为等差数列,前4个学生得到的糖果数目之和是26,积是880,编程求20名学生没人得到的糖果数目

#include <stdio.h>

int main(void)
{
        int j,number,n;

        for(number = 1;number<6;number++)
        {
                for(n=1;n<4;n++)
                {       
                        if(4*number+6*n != 26) continue;
                        if(number*(number+n)*(number+2*n)*(number+3*n) != 880) con
tinue;
                        for(j=1;j<=20;j++)
                        {
                                printf("%d \n",number);
                                number += n;
                        }
                }
        }


        return 0;
}