心理魔术

#include <stdio.h>

#include <math.h>

#include <time.h>

#include <stdlib.h>

#include <windows.h>

int math (){

int i;

char c,gu;

srand((unsigned)time(NULL));

c=6;

gu=rand()%31+1;

if(c>=7&&c<=1) c=17;

if(i%9==0)printf("%d.%c\t",i,gu);

else printf("%d.%c\t",i,c);

if(i%5==0)

printf("\n");

}

getchar();

printf("the icon you guess is:\n");

for(i=1;i<=10;i++)

  printf("%c",gu);

printf("\n");

}

posted @ 2019-03-25 12:53  破雨来  阅读(55)  评论(0编辑  收藏  举报