蓝桥杯 奖券数目
作者:互联网
#include<stdio.h>
int main()
{
int count = 0;
int a, b, c,d,e;//位数
for (a = 1; a < 10; a++)
{
for (b = 0; b < 10; b++)
{
for (c = 0; c < 10; c++)
{
for (d = 0; d < 10; d++)
{
for (e = 0; e < 10; e++)
{
if (a != 4 && b != 4 && c != 4 && d != 4 && e != 4)
{
count++;
}
}
}
}
}
}
printf("%d", count);
return 0;
}
标签:count,10,++,蓝桥,int,&&,奖券,数目 来源: https://www.cnblogs.com/qq1480040000/p/14215950.html