Description: #include "stdio.h"
void main()
{/*采用数组存储,循环嵌套实现*/
int i,j
int a[53] /*定义数组大小*/
for(i=1 i<=52 i++)
{
a[i]=i /*给出五十二张牌*/
}
for(i=1 i<=52 i++)/*循环翻牌*/
for(j=2 j<=52 j++)
{if(a[i] j==0)
a[i]=a[i]*(-1) /*整除判断*/
}
for(i=1 i<=52 i++)
if (a[i]>0)
printf(" d\n",a[i]) /*输出牌号*/
}
To Search:
- [queen] - 8, Queen' s super-cow program, the wh
File list (Check if you may need any files):
puke.doc