常用算法流程图及程序 1、枚举法: 1??47(百位和千位被涂抹掉了)是个五位数,要逐一输出所有能被 57或 67 整 除的五位数,并统计这样的五位数有几个。 c=0 j=0 Do while j<100 n=10047+j*100 If n mod 57=0 or n mod 67=0 then c=c+1 End if c=c+1 Print n j=j+1 Loop Print c 2、枚举法: 1? 4?7(十位和千位被涂抹掉了)是个五位数,要逐一输出所有能被 57 或 67 整除的五位数。 i=0 Do while j<=9 j=0 do while j<=9 n=10407+1000*i+10*j if n mod 57=0 or n mod 67=0 then print n end if j=j+1 loop i=i+1 Loo