#include<conio.h>
#include<stdio.h>
#include<stdlib.h>
void main()
{
int ra,ot[]={43,42,23,19,12,13,12,13};
int i,j,k,bk;
while(1)
{
randomize();
ra=random(127)+50;
randomize();
clrscr();
printf("***************************MIND READER****************************\n");
j=wherex();
k=wherey();
bk=k;
for(i=0;i<100;i++)
{
gotoxy(j,k);
printf("%4d ",i+1);
if((i+1)%9==0 && (i+1)<=81)
printf("%c",ra);
else
printf("%c",ot[random(8)]);
k++;
if(k>20)
{j=j+6,k=bk;}
}
gotoxy(j+10,5);
printf("Think of a two digit number...");
gotoxy(j+10,6);
printf("Add the digits and take the");
gotoxy(j+10,7);
printf("difference form original...");
gotoxy(j+10,8);
printf("Take the Symbol and Press Enter");
gotoxy(j+10,15);
printf("Press ESC to Leave...");
if(getch()==27)break;
else
{
gotoxy(j+10,14);
printf("Symbol : %c",ra);
gotoxy(j+10,15);
getpass("Press Enter to Contibue...");
}
}
}