Introduction - If you have any usage issues, please Google them yourself
#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]) /*输出牌号*/
}