2025-03-06 23:47:59 +08:00

20 lines
506 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*-------------------------------------------------------
【程序填空】 2、有一箱苹果100—200之间如果分成4个苹果一组的若干组则多2个苹果若分成7个苹果一组则多3个苹果 若分成9个苹果一组则多5个苹果编程实现求苹果的个数。
--------------------------------------------------------*/
# include <stdio.h>
main ()
{
int i;
for(i=100;i<200;i++)
/**********Program**********/
if(i%4==2 && i%7==3 && i%9==5)
/********** End **********/
printf ("%d",i);
}