#include<stdio.h>
main()
{
int i,j,k,count;
count=0;
for(i=1;i<10;i++)
for(j=0;j<10;j++)
if(i==j) continue;
else for(k=0;k<10;k++)
if(k!=i&&k!=j) count++;
printf("count=%d\n",count);
}
知识点
1.c语言计数器的使用,循环语句的运用
心得体会
1.学会使用循环语句加计数器