===========================================================================
CODING
#include<iostream.h>
#include<conio.h>
#include<dos.h>
#include<stdio.h>
#include<process.h>
#include<math.h>
/*void number(int x, int y,int N)
{
textcolor(CYAN);
textbackground(YELLOW);
x+=6;
y+=1;
switch(N)
{
case 1:
gotoxy(x,y);
cprintf("ÉÍÍ» ");
gotoxy(x,y+1);
cprintf(" º ");
gotoxy(x,y+2);
cprintf(" º ");
gotoxy(x,y+3);
cprintf(" º ");
gotoxy(x,y+4);
cprintf("ÍÍÍÊÍÍÍ");
break;
case 2:
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf(" º");
gotoxy(x,y+2);
cprintf("ÉÍÍÍÍͼ");
gotoxy(x,y+3);
cprintf("º ");
gotoxy(x,y+4);
cprintf("ÈÍÍÍÍͼ");
break;
case 3:
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf(" º");
gotoxy(x,y+2);
cprintf(" ÌÍÍ͹");
gotoxy(x,y+3);
cprintf(" º");
gotoxy(x,y+4);
cprintf("ÈÍÍÍÍͼ");
break;
case 4:
gotoxy(x,y);
cprintf("Ë Ë");
gotoxy(x,y+1);
cprintf("º º");
gotoxy(x,y+2);
cprintf("ÈÍÍÍÍ͹");
gotoxy(x,y+3);
cprintf(" º");
gotoxy(x,y+4);
cprintf(" Ê");
break;
case 5:
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf("º ");
gotoxy(x,y+2);
cprintf("ÈÍÍÍÍÍ»");
gotoxy(x,y+3);
cprintf(" º");
gotoxy(x,y+4);
cprintf("ÈÍÍÍÍͼ");
break;
case 6:
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf("º ");
gotoxy(x,y+2);
cprintf("ÌÍÍÍÍÍ»");
gotoxy(x,y+3);
cprintf("º º");
gotoxy(x,y+4);
cprintf("ÈÍÍÍÍͼ");
break;
case 7:
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf(" º");
gotoxy(x,y+2);
cprintf(" º");
gotoxy(x,y+3);
cprintf(" º");
gotoxy(x,y+4);
cprintf(" º ");
break;
case 8:
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf("º º");
gotoxy(x,y+2);
cprintf("ÌÍÍÍÍ͹");
gotoxy(x,y+3);
cprintf("º º");
gotoxy(x,y+4);
cprintf("ÈÍÍÍÍͼ");
break;
case 9:
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf("º º");
gotoxy(x,y+2);
cprintf("ÈÍÍÍÍ͹");
gotoxy(x,y+3);
cprintf(" º");
gotoxy(x,y+4);
cprintf("ÈÍÍÍÍͼ");
break;
case 0:
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf("º º");
gotoxy(x,y+2);
cprintf("º º");
gotoxy(x,y+3);
cprintf("º º");
gotoxy(x,y+4);
cprintf("ÈÍÍÍÍͼ");
break;
case 10:
x-=3;
gotoxy(x,y);
cprintf("ÉÍ _ ");
gotoxy(x,y+1);
cprintf("ÌÍ ÄÂÄ ³_> ");
gotoxy(x,y+2);
cprintf("Èͳ\\³³Úij \\ ");
gotoxy(x,y+3);
cprintf(" ÃÄ ");
gotoxy(x,y+4);
cprintf(" ÀÄ ");
break;
}
}
void block(int x,int y,int N)
{
int i,j,k;
textcolor(WHITE);
textbackground(0);
gotoxy(x+1,y);
cprintf(" ");
textbackground(YELLOW);
cprintf("ÚÄÄÄÄÄÄÄÄÄÄÄÄ¿");
gotoxy(x,y+1);
textbackground(RED);
cprintf(" ");
textbackground(YELLOW);
cprintf("³ ³");
gotoxy(x,y+2);
textbackground(RED);
cprintf(" ");
textbackground(YELLOW);
cprintf("³ ³");
gotoxy(x,y+3);
textbackground(RED);
cprintf(" ");
textbackground(YELLOW);
cprintf("³ ³");
gotoxy(x,y+4);
textbackground(RED);
cprintf(" ");
textbackground(YELLOW);
cprintf("³ ³");
gotoxy(x,y+5);
textbackground(RED);
cprintf(" ");
textbackground(YELLOW);
cprintf("³ ³");
gotoxy(x,y+6);
textbackground(RED);
cprintf(" ");
textbackground(YELLOW);
cprintf("ÀÄÄÄÄÄÄÄÄÄÄÄÄÙ");
gotoxy(x,y+7);
textbackground(RED);
cprintf(" ");
cprintf(" ");
number(x,y,N);
}
void press(int x, int y,int N)
{
int i,j,k;
textcolor(WHITE);
textbackground(0);
gotoxy(x+1,y);
cprintf(" ");
textbackground(0);
cprintf(" ");
gotoxy(x,y+1);
textbackground(0);
cprintf(" ");
textbackground(0);
cprintf(" ");
gotoxy(x,y+2);
textbackground(0);
cprintf(" ");
textbackground(0);
cprintf(" ");
gotoxy(x,y+3);
textbackground(0);
cprintf(" ");
textbackground(0);
cprintf(" ");
gotoxy(x,y+4);
textbackground(0);
cprintf(" ");
textbackground(0);
cprintf(" ");
gotoxy(x,y+5);
textbackground(0);
cprintf(" ");
textbackground(0);
cprintf(" ");
gotoxy(x,y+6);
textbackground(0);
cprintf(" ");
textbackground(0);
cprintf(" ");
gotoxy(x,y+7);
textbackground(0);
cprintf(" ");
cprintf(" ");
textbackground(0);
gotoxy(x+1,y);
cprintf("");
textbackground(YELLOW);
cprintf("ÚÄÄÄÄÄÄÄÄÄÄÄÄ¿");
gotoxy(x,y+1);
textbackground(RED);
cprintf(" ");
textbackground(YELLOW);
cprintf("³ ³");
gotoxy(x,y+2);
textbackground(RED);
cprintf(" ");
textbackground(YELLOW);
cprintf("³ ³");
gotoxy(x,y+3);
textbackground(RED);
cprintf(" ");
textbackground(YELLOW);
cprintf("³ ³");
gotoxy(x,y+4);
textbackground(RED);
cprintf(" ");
textbackground(YELLOW);
cprintf("³ ³");
gotoxy(x,y+5);
textbackground(RED);
cprintf(" ");
textbackground(YELLOW);
cprintf("³ ³");
gotoxy(x,y+6);
textbackground(RED);
cprintf(" ");
textbackground(YELLOW);
cprintf("ÀÄÄÄÄÄÄÄÄÄÄÄÄÙ");
gotoxy(x,y+7);
textbackground(RED);
cprintf(" ");
cprintf(" ");
number(x-1,y,N);
delay(100);
textcolor(WHITE);
textbackground(0);
gotoxy(x+1,y);
cprintf(" ");
textbackground(0);
cprintf(" ");
gotoxy(x,y+1);
textbackground(0);
cprintf(" ");
textbackground(0);
cprintf(" ");
gotoxy(x,y+2);
textbackground(0);
cprintf(" ");
textbackground(0);
cprintf(" ");
gotoxy(x,y+3);
textbackground(0);
cprintf(" ");
textbackground(0);
cprintf(" ");
gotoxy(x,y+4);
textbackground(0);
cprintf(" ");
textbackground(0);
cprintf(" ");
gotoxy(x,y+5);
textbackground(0);
cprintf(" ");
textbackground(0);
cprintf(" ");
gotoxy(x,y+6);
textbackground(0);
cprintf(" ");
textbackground(0);
cprintf(" ");
gotoxy(x,y+7);
textbackground(0);
cprintf(" ");
cprintf(" ");
y++;
textbackground(0);
gotoxy(x,y);
textbackground(YELLOW);
cprintf("ÚÄÄÄÄÄÄÄÄÄÄÄÄ¿");
gotoxy(x,y+1);
textbackground(RED);
cprintf("");
textbackground(YELLOW);
cprintf("³ ³");
gotoxy(x,y+2);
textbackground(RED);
cprintf("");
textbackground(YELLOW);
cprintf("³ ³");
gotoxy(x,y+3);
textbackground(RED);
cprintf("");
textbackground(YELLOW);
cprintf("³ ³");
gotoxy(x,y+4);
textbackground(RED);
cprintf("");
textbackground(YELLOW);
cprintf("³ ³");
gotoxy(x,y+5);
textbackground(RED);
cprintf("");
textbackground(YELLOW);
cprintf("³ ³");
gotoxy(x,y+6);
textbackground(RED);
cprintf("");
textbackground(YELLOW);
cprintf("ÀÄÄÄÄÄÄÄÄÄÄÄÄÙ");
gotoxy(x,y+7);
textbackground(RED);
cprintf("");
number(x-2,y,N);
delay(100);
textcolor(WHITE);
y--;
textbackground(0);
gotoxy(x+1,y);
cprintf(" ");
textbackground(0);
cprintf(" ");
gotoxy(x,y+1);
textbackground(0);
cprintf(" ");
textbackground(0);
cprintf(" ");
gotoxy(x,y+2);
textbackground(0);
cprintf(" ");
textbackground(0);
cprintf(" ");
gotoxy(x,y+3);
textbackground(0);
cprintf(" ");
textbackground(0);
cprintf(" ");
gotoxy(x,y+4);
textbackground(0);
cprintf(" ");
textbackground(0);
cprintf(" ");
gotoxy(x,y+5);
textbackground(0);
cprintf(" ");
textbackground(0);
cprintf(" ");
gotoxy(x,y+6);
textbackground(0);
cprintf(" ");
textbackground(0);
cprintf(" ");
gotoxy(x,y+7);
textbackground(0);
cprintf(" ");
cprintf(" ");
textbackground(0);
gotoxy(x+1,y);
cprintf("");
textbackground(YELLOW);
cprintf("ÚÄÄÄÄÄÄÄÄÄÄÄÄ¿");
gotoxy(x,y+1);
textbackground(RED);
cprintf(" ");
textbackground(YELLOW);
cprintf("³ ³");
gotoxy(x,y+2);
textbackground(RED);
cprintf(" ");
textbackground(YELLOW);
cprintf("³ ³");
gotoxy(x,y+3);
textbackground(RED);
cprintf(" ");
textbackground(YELLOW);
cprintf("³ ³");
gotoxy(x,y+4);
textbackground(RED);
cprintf(" ");
textbackground(YELLOW);
cprintf("³ ³");
gotoxy(x,y+5);
textbackground(RED);
cprintf(" ");
textbackground(YELLOW);
cprintf("³ ³");
gotoxy(x,y+6);
textbackground(RED);
cprintf(" ");
textbackground(YELLOW);
cprintf("ÀÄÄÄÄÄÄÄÄÄÄÄÄÙ");
gotoxy(x,y+7);
textbackground(RED);
cprintf(" ");
cprintf(" ");
number(x-1,y,N);
delay(100);
textcolor(WHITE);
textbackground(0);
gotoxy(x+1,y);
cprintf(" ");
textbackground(0);
cprintf(" ");
gotoxy(x,y+1);
textbackground(0);
cprintf(" ");
textbackground(0);
cprintf(" ");
gotoxy(x,y+2);
textbackground(0);
cprintf(" ");
textbackground(0);
cprintf(" ");
gotoxy(x,y+3);
textbackground(0);
cprintf(" ");
textbackground(0);
cprintf(" ");
gotoxy(x,y+4);
textbackground(0);
cprintf(" ");
textbackground(0);
cprintf(" ");
gotoxy(x,y+5);
textbackground(0);
cprintf(" ");
textbackground(0);
cprintf(" ");
gotoxy(x,y+6);
textbackground(0);
cprintf(" ");
textbackground(0);
cprintf(" ");
gotoxy(x,y+7);
textbackground(0);
cprintf(" ");
cprintf(" ");
textbackground(0);
gotoxy(x+1,y);
cprintf(" ");
textbackground(YELLOW);
cprintf("ÚÄÄÄÄÄÄÄÄÄÄÄÄ¿");
gotoxy(x,y+1);
textbackground(RED);
cprintf(" ");
textbackground(YELLOW);
cprintf("³ ³");
gotoxy(x,y+2);
textbackground(RED);
cprintf(" ");
textbackground(YELLOW);
cprintf("³ ³");
gotoxy(x,y+3);
textbackground(RED);
cprintf(" ");
textbackground(YELLOW);
cprintf("³ ³");
gotoxy(x,y+4);
textbackground(RED);
cprintf(" ");
textbackground(YELLOW);
cprintf("³ ³");
gotoxy(x,y+5);
textbackground(RED);
cprintf(" ");
textbackground(YELLOW);
cprintf("³ ³");
gotoxy(x,y+6);
textbackground(RED);
cprintf(" ");
textbackground(YELLOW);
cprintf("ÀÄÄÄÄÄÄÄÄÄÄÄÄÙ");
gotoxy(x,y+7);
textbackground(RED);
cprintf(" ");
cprintf(" ");
number(x,y,N);
} */
void number(int x, int y,int N)
{
textcolor(BLACK);
textbackground(LIGHTGRAY);
x+=6;
y+=1;
switch(N)
{
case 1:
gotoxy(x,y);
cprintf("ÉÍÍ» ");
gotoxy(x,y+1);
cprintf(" º ");
gotoxy(x,y+2);
cprintf(" º ");
gotoxy(x,y+3);
cprintf(" º ");
gotoxy(x,y+4);
cprintf("ÍÍÍÊÍÍÍ");
break;
case 2:
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf(" º");
gotoxy(x,y+2);
cprintf("ÉÍÍÍÍͼ");
gotoxy(x,y+3);
cprintf("º ");
gotoxy(x,y+4);
cprintf("ÈÍÍÍÍͼ");
break;
case 3:
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf(" º");
gotoxy(x,y+2);
cprintf(" ÌÍÍ͹");
gotoxy(x,y+3);
cprintf(" º");
gotoxy(x,y+4);
cprintf("ÈÍÍÍÍͼ");
break;
case 4:
gotoxy(x,y);
cprintf("Ë Ë");
gotoxy(x,y+1);
cprintf("º º");
gotoxy(x,y+2);
cprintf("ÈÍÍÍÍ͹");
gotoxy(x,y+3);
cprintf(" º");
gotoxy(x,y+4);
cprintf(" Ê");
break;
case 5:
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf("º ");
gotoxy(x,y+2);
cprintf("ÈÍÍÍÍÍ»");
gotoxy(x,y+3);
cprintf(" º");
gotoxy(x,y+4);
cprintf("ÈÍÍÍÍͼ");
break;
case 6:
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf("º ");
gotoxy(x,y+2);
cprintf("ÌÍÍÍÍÍ»");
gotoxy(x,y+3);
cprintf("º º");
gotoxy(x,y+4);
cprintf("ÈÍÍÍÍͼ");
break;
case 7:
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf(" º");
gotoxy(x,y+2);
cprintf(" º");
gotoxy(x,y+3);
cprintf(" º");
gotoxy(x,y+4);
cprintf(" º ");
break;
case 8:
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf("º º");
gotoxy(x,y+2);
cprintf("ÌÍÍÍÍ͹");
gotoxy(x,y+3);
cprintf("º º");
gotoxy(x,y+4);
cprintf("ÈÍÍÍÍͼ");
break;
case 9:
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf("º º");
gotoxy(x,y+2);
cprintf("ÈÍÍÍÍ͹");
gotoxy(x,y+3);
cprintf(" º");
gotoxy(x,y+4);
cprintf("ÈÍÍÍÍͼ");
break;
case 0:
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf("º º");
gotoxy(x,y+2);
cprintf("º º");
gotoxy(x,y+3);
cprintf("º º");
gotoxy(x,y+4);
cprintf("ÈÍÍÍÍͼ");
break;
case 10:
x-=3;
gotoxy(x,y);
cprintf("ÉÍ _ ");
gotoxy(x,y+1);
cprintf("ÌÍ ÄÂÄ ³_> ");
gotoxy(x,y+2);
cprintf("Èͳ\\³³Úij \\ ");
gotoxy(x,y+3);
cprintf(" ÃÄ ");
gotoxy(x,y+4);
cprintf(" ÀÄ ");
break;
}
}
void block(int x,int y,int N)
{
int i,j,k;
textcolor(WHITE);
textbackground(BLUE);
gotoxy(x+1,y);
cprintf(" ");
textbackground(LIGHTGRAY);
cprintf("ÚÄÄÄÄÄÄÄÄÄÄÄÄ¿");
gotoxy(x,y+1);
textbackground(0);
cprintf(" ");
textbackground(LIGHTGRAY);
cprintf("³ ³");
gotoxy(x,y+2);
textbackground(0);
cprintf(" ");
textbackground(LIGHTGRAY);
cprintf("³ ³");
gotoxy(x,y+3);
textbackground(0);
cprintf(" ");
textbackground(LIGHTGRAY);
cprintf("³ ³");
gotoxy(x,y+4);
textbackground(0);
cprintf(" ");
textbackground(LIGHTGRAY);
cprintf("³ ³");
gotoxy(x,y+5);
textbackground(0);
cprintf(" ");
textbackground(LIGHTGRAY);
cprintf("³ ³");
gotoxy(x,y+6);
textbackground(0);
cprintf(" ");
textbackground(LIGHTGRAY);
cprintf("ÀÄÄÄÄÄÄÄÄÄÄÄÄÙ");
gotoxy(x,y+7);
textbackground(0);
cprintf(" ");
cprintf(" ");
number(x,y,N);
}
void press(int x, int y,int N)
{
int i,j,k;
textcolor(WHITE);
textbackground(BLUE);
gotoxy(x+1,y);
cprintf(" ");
textbackground(BLUE);
cprintf(" ");
gotoxy(x,y+1);
textbackground(BLUE);
cprintf(" ");
textbackground(BLUE);
cprintf(" ");
gotoxy(x,y+2);
textbackground(BLUE);
cprintf(" ");
textbackground(BLUE);
cprintf(" ");
gotoxy(x,y+3);
textbackground(BLUE);
cprintf(" ");
textbackground(BLUE);
cprintf(" ");
gotoxy(x,y+4);
textbackground(BLUE);
cprintf(" ");
textbackground(BLUE);
cprintf(" ");
gotoxy(x,y+5);
textbackground(BLUE);
cprintf(" ");
textbackground(BLUE);
cprintf(" ");
gotoxy(x,y+6);
textbackground(BLUE);
cprintf(" ");
textbackground(BLUE);
cprintf(" ");
gotoxy(x,y+7);
textbackground(BLUE);
cprintf(" ");
cprintf(" ");
textbackground(BLUE);
gotoxy(x+1,y);
cprintf("");
textbackground(LIGHTGRAY);
cprintf("ÚÄÄÄÄÄÄÄÄÄÄÄÄ¿");
gotoxy(x,y+1);
textbackground(0);
cprintf(" ");
textbackground(LIGHTGRAY);
cprintf("³ ³");
gotoxy(x,y+2);
textbackground(0);
cprintf(" ");
textbackground(LIGHTGRAY);
cprintf("³ ³");
gotoxy(x,y+3);
textbackground(0);
cprintf(" ");
textbackground(LIGHTGRAY);
cprintf("³ ³");
gotoxy(x,y+4);
textbackground(0);
cprintf(" ");
textbackground(LIGHTGRAY);
cprintf("³ ³");
gotoxy(x,y+5);
textbackground(0);
cprintf(" ");
textbackground(LIGHTGRAY);
cprintf("³ ³");
gotoxy(x,y+6);
textbackground(0);
cprintf(" ");
textbackground(LIGHTGRAY);
cprintf("ÀÄÄÄÄÄÄÄÄÄÄÄÄÙ");
gotoxy(x,y+7);
textbackground(0);
cprintf(" ");
cprintf(" ");
number(x-1,y,N);
delay(100);
textcolor(WHITE);
textbackground(BLUE);
gotoxy(x+1,y);
cprintf(" ");
textbackground(BLUE);
cprintf(" ");
gotoxy(x,y+1);
textbackground(BLUE);
cprintf(" ");
textbackground(BLUE);
cprintf(" ");
gotoxy(x,y+2);
textbackground(BLUE);
cprintf(" ");
textbackground(BLUE);
cprintf(" ");
gotoxy(x,y+3);
textbackground(BLUE);
cprintf(" ");
textbackground(BLUE);
cprintf(" ");
gotoxy(x,y+4);
textbackground(BLUE);
cprintf(" ");
textbackground(BLUE);
cprintf(" ");
gotoxy(x,y+5);
textbackground(BLUE);
cprintf(" ");
textbackground(BLUE);
cprintf(" ");
gotoxy(x,y+6);
textbackground(BLUE);
cprintf(" ");
textbackground(BLUE);
cprintf(" ");
gotoxy(x,y+7);
textbackground(BLUE);
cprintf(" ");
cprintf(" ");
y++;
textbackground(BLUE);
gotoxy(x,y);
textbackground(LIGHTGRAY);
cprintf("ÚÄÄÄÄÄÄÄÄÄÄÄÄ¿");
gotoxy(x,y+1);
textbackground(0);
cprintf("");
textbackground(LIGHTGRAY);
cprintf("³ ³");
gotoxy(x,y+2);
textbackground(0);
cprintf("");
textbackground(LIGHTGRAY);
cprintf("³ ³");
gotoxy(x,y+3);
textbackground(0);
cprintf("");
textbackground(LIGHTGRAY);
cprintf("³ ³");
gotoxy(x,y+4);
textbackground(0);
cprintf("");
textbackground(LIGHTGRAY);
cprintf("³ ³");
gotoxy(x,y+5);
textbackground(0);
cprintf("");
textbackground(LIGHTGRAY);
cprintf("³ ³");
gotoxy(x,y+6);
textbackground(0);
cprintf("");
textbackground(LIGHTGRAY);
cprintf("ÀÄÄÄÄÄÄÄÄÄÄÄÄÙ");
gotoxy(x,y+7);
textbackground(0);
cprintf("");
number(x-2,y,N);
delay(100);
textcolor(WHITE);
y--;
textbackground(BLUE);
gotoxy(x+1,y);
cprintf(" ");
textbackground(BLUE);
cprintf(" ");
gotoxy(x,y+1);
textbackground(BLUE);
cprintf(" ");
textbackground(BLUE);
cprintf(" ");
gotoxy(x,y+2);
textbackground(BLUE);
cprintf(" ");
textbackground(BLUE);
cprintf(" ");
gotoxy(x,y+3);
textbackground(BLUE);
cprintf(" ");
textbackground(BLUE);
cprintf(" ");
gotoxy(x,y+4);
textbackground(BLUE);
cprintf(" ");
textbackground(BLUE);
cprintf(" ");
gotoxy(x,y+5);
textbackground(BLUE);
cprintf(" ");
textbackground(BLUE);
cprintf(" ");
gotoxy(x,y+6);
textbackground(BLUE);
cprintf(" ");
textbackground(BLUE);
cprintf(" ");
gotoxy(x,y+7);
textbackground(BLUE);
cprintf(" ");
cprintf(" ");
textbackground(BLUE);
gotoxy(x+1,y);
cprintf("");
textbackground(LIGHTGRAY);
cprintf("ÚÄÄÄÄÄÄÄÄÄÄÄÄ¿");
gotoxy(x,y+1);
textbackground(0);
cprintf(" ");
textbackground(LIGHTGRAY);
cprintf("³ ³");
gotoxy(x,y+2);
textbackground(0);
cprintf(" ");
textbackground(LIGHTGRAY);
cprintf("³ ³");
gotoxy(x,y+3);
textbackground(0);
cprintf(" ");
textbackground(LIGHTGRAY);
cprintf("³ ³");
gotoxy(x,y+4);
textbackground(0);
cprintf(" ");
textbackground(LIGHTGRAY);
cprintf("³ ³");
gotoxy(x,y+5);
textbackground(0);
cprintf(" ");
textbackground(LIGHTGRAY);
cprintf("³ ³");
gotoxy(x,y+6);
textbackground(0);
cprintf(" ");
textbackground(LIGHTGRAY);
cprintf("ÀÄÄÄÄÄÄÄÄÄÄÄÄÙ");
gotoxy(x,y+7);
textbackground(0);
cprintf(" ");
cprintf(" ");
number(x-1,y,N);
delay(100);
textcolor(WHITE);
textbackground(BLUE);
gotoxy(x+1,y);
cprintf(" ");
textbackground(BLUE);
cprintf(" ");
gotoxy(x,y+1);
textbackground(BLUE);
cprintf(" ");
textbackground(BLUE);
cprintf(" ");
gotoxy(x,y+2);
textbackground(BLUE);
cprintf(" ");
textbackground(BLUE);
cprintf(" ");
gotoxy(x,y+3);
textbackground(BLUE);
cprintf(" ");
textbackground(BLUE);
cprintf(" ");
gotoxy(x,y+4);
textbackground(BLUE);
cprintf(" ");
textbackground(BLUE);
cprintf(" ");
gotoxy(x,y+5);
textbackground(BLUE);
cprintf(" ");
textbackground(BLUE);
cprintf(" ");
gotoxy(x,y+6);
textbackground(BLUE);
cprintf(" ");
textbackground(BLUE);
cprintf(" ");
gotoxy(x,y+7);
textbackground(BLUE);
cprintf(" ");
cprintf(" ");
textbackground(BLUE);
gotoxy(x+1,y);
cprintf(" ");
textbackground(LIGHTGRAY);
cprintf("ÚÄÄÄÄÄÄÄÄÄÄÄÄ¿");
gotoxy(x,y+1);
textbackground(0);
cprintf(" ");
textbackground(LIGHTGRAY);
cprintf("³ ³");
gotoxy(x,y+2);
textbackground(0);
cprintf(" ");
textbackground(LIGHTGRAY);
cprintf("³ ³");
gotoxy(x,y+3);
textbackground(0);
cprintf(" ");
textbackground(LIGHTGRAY);
cprintf("³ ³");
gotoxy(x,y+4);
textbackground(0);
cprintf(" ");
textbackground(LIGHTGRAY);
cprintf("³ ³");
gotoxy(x,y+5);
textbackground(0);
cprintf(" ");
textbackground(LIGHTGRAY);
cprintf("³ ³");
gotoxy(x,y+6);
textbackground(0);
cprintf(" ");
textbackground(LIGHTGRAY);
cprintf("ÀÄÄÄÄÄÄÄÄÄÄÄÄÙ");
gotoxy(x,y+7);
textbackground(0);
cprintf(" ");
cprintf(" ");
number(x,y,N);
}
void display(char str[80],int col, int c1,int c2)
{
int choice,abcd,ordinate,abssisca,space,add,hint=0;
clrscr();
clrscr();
textcolor(col);
for(abssisca=2;abssisca<=80;abssisca++)
{
for(ordinate=2;ordinate<=24;ordinate++)
{
gotoxy(abssisca,ordinate);
cprintf("Û");
}
}
for(ordinate=13,add=13;add<=23;ordinate--,add++)
{
for(abssisca=3;abssisca<=79;abssisca++)
{
gotoxy(abssisca,ordinate);
cprintf(" ");
}
for(abssisca=3;abssisca<=79;abssisca++)
{
gotoxy(abssisca,add);
cprintf(" ");
}
delay(300);
}
for(ordinate=2;ordinate<=24;ordinate++)
{
for(abssisca=2;abssisca<=80;abssisca=abssisca+78)
{
gotoxy(abssisca,ordinate);
cprintf("Û");
}
}
textcolor(c1);
for(abssisca=4,ordinate=4,choice=0;str[choice]!='\0';choice++,abssisca=space+abssisca)
{
// choice=getch();
// if(choice=='\\')
// goto label;
space=7;
switch(str[choice])
{
case 65: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("Û Û");
break;
case 97: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf(" Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 66: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛ ");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛ ");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛ ");
break;
case 98: gotoxy(abssisca,ordinate);
cprintf("Û ");
gotoxy(abssisca,ordinate+1);
cprintf("Û ");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 67: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("Û ");
gotoxy(abssisca,ordinate+2);
cprintf("Û ");
gotoxy(abssisca,ordinate+3);
cprintf("Û ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 99: gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+2);
cprintf("Û ");
gotoxy(abssisca,ordinate+3);
cprintf("Û ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 68: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛ ");
gotoxy(abssisca,ordinate+1);
cprintf("Û ÛÛ");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û");
gotoxy(abssisca,ordinate+3);
cprintf("Û ÛÛ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛ ");
break;
case 100: gotoxy(abssisca,ordinate);
cprintf(" Û");
gotoxy(abssisca,ordinate+1);
cprintf(" Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 69: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("ÛÛ ");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("ÛÛ ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 101: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("Û ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 70: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("ÛÛ ");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("ÛÛ ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛ ");
break;
case 102: gotoxy(abssisca,ordinate);
cprintf(" ÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf(" Û ");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛ ");
break;
case 71: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("Û ");
gotoxy(abssisca,ordinate+2);
cprintf("Û ÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 103: gotoxy(abssisca,ordinate);
cprintf(" ÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf(" ÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 72: gotoxy(abssisca,ordinate);
cprintf("Û Û");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("Û Û");
break;
case 104: gotoxy(abssisca,ordinate);
cprintf("Û ");
gotoxy(abssisca,ordinate+1);
cprintf("Û ");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛ ");
gotoxy(abssisca,ordinate+3);
cprintf("Û ÛÛ");
gotoxy(abssisca,ordinate+4);
cprintf("Û Û");
break;
case 73: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf(" Û ");
gotoxy(abssisca,ordinate+2);
cprintf(" Û ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 105: gotoxy(abssisca,ordinate);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+1);
cprintf(" ");
gotoxy(abssisca,ordinate+2);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+3);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+4);
cprintf(" ÛÛÛÛ");
break;
case 74: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf(" Û ");
gotoxy(abssisca,ordinate+2);
cprintf(" Û ");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛ ");
break;
case 106: gotoxy(abssisca,ordinate);
cprintf(" Û");
gotoxy(abssisca,ordinate+1);
cprintf(" Û");
gotoxy(abssisca,ordinate+2);
cprintf(" Û");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 75: gotoxy(abssisca,ordinate);
cprintf("Û ÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("Û ÛÛ ");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛ ");
gotoxy(abssisca,ordinate+3);
cprintf("Û ÛÛ ");
gotoxy(abssisca,ordinate+4);
cprintf("Û ÛÛ");
break;
case 107: gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û ");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û ");
gotoxy(abssisca,ordinate+3);
cprintf("ÛÛ ");
gotoxy(abssisca,ordinate+4);
cprintf("Û Û ");
break;
case 76: gotoxy(abssisca,ordinate);
cprintf("Û ");
gotoxy(abssisca,ordinate+1);
cprintf("Û ");
gotoxy(abssisca,ordinate+2);
cprintf("Û ");
gotoxy(abssisca,ordinate+3);
cprintf("Û ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 108: gotoxy(abssisca,ordinate);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+1);
cprintf(" Û ");
gotoxy(abssisca,ordinate+2);
cprintf(" Û ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 77: gotoxy(abssisca,ordinate);
cprintf("Û Û");
gotoxy(abssisca,ordinate+1);
cprintf("ÛÛ ÛÛ");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û Û");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("Û Û");
break;
case 109: gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û Û");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("Û Û Û");
break;
case 78: gotoxy(abssisca,ordinate);
cprintf("Û Û");
gotoxy(abssisca,ordinate+1);
cprintf("ÛÛ Û");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û Û");
gotoxy(abssisca,ordinate+3);
cprintf("Û ÛÛ");
gotoxy(abssisca,ordinate+4);
cprintf("Û Û");
break;
case 110: gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf(" ");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛ ");
gotoxy(abssisca,ordinate+3);
cprintf("Û ÛÛ");
gotoxy(abssisca,ordinate+4);
cprintf("Û Û");
break;
case 79: gotoxy(abssisca,ordinate);
cprintf(" ÛÛÛ ");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf(" ÛÛÛ ");
break;
case 111: gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf(" ");
gotoxy(abssisca,ordinate+2);
cprintf(" ÛÛÛ ");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf(" ÛÛÛ ");
break;
case 80: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛ ");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛ ");
gotoxy(abssisca,ordinate+3);
cprintf("Û ");
gotoxy(abssisca,ordinate+4);
cprintf("Û ");
break;
case 112: gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf("ÛÛÛÛ ");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û");
gotoxy(abssisca,ordinate+3);
cprintf("ÛÛÛÛ ");
gotoxy(abssisca,ordinate+4);
cprintf("Û ");
break;
case 81: gotoxy(abssisca,ordinate);
cprintf(" ÛÛÛ ");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û Û");
gotoxy(abssisca,ordinate+4);
cprintf(" ÛÛ Û");
break;
case 113: gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf(" ÛÛÛÛ");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û");
gotoxy(abssisca,ordinate+3);
cprintf(" ÛÛÛÛ");
gotoxy(abssisca,ordinate+4);
cprintf(" ÛÛ");
break;
case 82: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û ");
gotoxy(abssisca,ordinate+4);
cprintf("Û ÛÛ");
break;
case 114: gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf(" ");
gotoxy(abssisca,ordinate+2);
cprintf("Û ÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("ÛÛ ");
gotoxy(abssisca,ordinate+4);
cprintf("Û ");
break;
case 83: gotoxy(abssisca,ordinate);
cprintf(" ÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("Û ");
gotoxy(abssisca,ordinate+2);
cprintf(" ÛÛÛ ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛ ");
break;
case 115: gotoxy(abssisca,ordinate);
cprintf(" ÛÛÛ ");
gotoxy(abssisca,ordinate+1);
cprintf("Û ");
gotoxy(abssisca,ordinate+2);
cprintf(" ÛÛÛ ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û");
gotoxy(abssisca,ordinate+4);
cprintf(" ÛÛÛ ");
break;
case 84: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf(" Û ");
gotoxy(abssisca,ordinate+2);
cprintf(" Û ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û ");
gotoxy(abssisca,ordinate+4);
cprintf(" Û ");
break;
case 116: gotoxy(abssisca,ordinate);
cprintf(" Û ");
gotoxy(abssisca,ordinate+1);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+2);
cprintf(" Û ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û ");
gotoxy(abssisca,ordinate+4);
cprintf(" ÛÛÛ");
break;
case 85: gotoxy(abssisca,ordinate);
cprintf("Û Û");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 117: gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf(" ");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 86: gotoxy(abssisca,ordinate);
cprintf("Û Û");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û");
gotoxy(abssisca,ordinate+3);
cprintf("ÛÛ ÛÛ");
gotoxy(abssisca,ordinate+4);
cprintf(" ÛÛÛ ");
break;
case 118: gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf(" ");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û");
gotoxy(abssisca,ordinate+3);
cprintf("ÛÛ ÛÛ");
gotoxy(abssisca,ordinate+4);
cprintf(" ÛÛÛ ");
break;
case 87: gotoxy(abssisca,ordinate);
cprintf("Û Û");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û Û");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛ ÛÛ");
break;
case 119: gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf(" ");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛ ÛÛ");
break;
case 88: gotoxy(abssisca,ordinate);
cprintf("Û Û");
gotoxy(abssisca,ordinate+1);
cprintf(" Û Û ");
gotoxy(abssisca,ordinate+2);
cprintf(" Û ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û Û ");
gotoxy(abssisca,ordinate+4);
cprintf("Û Û");
break;
case 120: gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf(" ");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û");
gotoxy(abssisca,ordinate+3);
cprintf(" ÛÛÛ ");
gotoxy(abssisca,ordinate+4);
cprintf("Û Û");
break;
case 89: gotoxy(abssisca,ordinate);
cprintf("Û Û");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û ");
gotoxy(abssisca,ordinate+4);
cprintf(" Û ");
break;
case 121: gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 90: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf(" Û ");
gotoxy(abssisca,ordinate+2);
cprintf(" Û ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 122: gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+2);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+3);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 48: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 49: gotoxy(abssisca,ordinate);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û ");
gotoxy(abssisca,ordinate+2);
cprintf(" Û ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 50: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf(" Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("Û ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 51: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf(" Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 52: gotoxy(abssisca,ordinate);
cprintf("Û Û");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û");
gotoxy(abssisca,ordinate+4);
cprintf(" Û");
break;
case 53: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("Û ");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 54: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("Û ");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 55: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf(" ÛÛ");
gotoxy(abssisca,ordinate+2);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+3);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛ ");
break;
case 56: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 57: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case ' ': space=7;
break;
case 33: gotoxy(abssisca,ordinate);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+1);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+2);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+3);
cprintf(" ");
gotoxy(abssisca,ordinate+4);
cprintf(" ÛÛ ");
break;
case '=': gotoxy(abssisca,ordinate);
cprintf(" Û ");
gotoxy(abssisca,ordinate+1);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+4);
cprintf(" Û ");
break;
case '-': gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf(" ");
gotoxy(abssisca,ordinate+2);
cprintf(" ");
gotoxy(abssisca,ordinate+3);
cprintf(" ");
gotoxy(abssisca,ordinate+4);
cprintf(" ");
break;
case ':': gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+2);
cprintf(" ");
gotoxy(abssisca,ordinate+3);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+4);
cprintf(" ");
break;
case '.': gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf(" ");
gotoxy(abssisca,ordinate+2);
cprintf(" ");
gotoxy(abssisca,ordinate+3);
cprintf(" ");
gotoxy(abssisca,ordinate+4);
cprintf(" ÛÛ ");
break;
case '/': textcolor(c2+128);
space=0;
break;
case ',': goto label;
case '|': getch();
textcolor(c1);
default: abssisca=4;
ordinate=7+ordinate;
space=0;
hint=1;
break;
}
if(str[choice+1]!=',')
{
if((ordinate>=18 && abssisca>=74) || (ordinate>18 && hint==1))
{
delay(10000);
for(abssisca=41,add=41;add<=79;abssisca--,add++)
{
for(ordinate=3;ordinate<=23;ordinate++)
{
gotoxy(abssisca,ordinate);
cprintf(" ");
}
for(ordinate=3;ordinate<=23;ordinate++)
{
gotoxy(add,ordinate);
cprintf(" ");
}
delay(100);
}
abssisca=4;
space=0;
ordinate=4;
hint=0;
textcolor(c2);
}
else if(abssisca>=74)
{
abssisca=4;
space=0;
ordinate=7+ordinate;
}
}
}
label:
getch();
for(ordinate=13,add=13;add<=24;ordinate--,add++)
{
for(abssisca=2;abssisca<=80;abssisca++)
{
gotoxy(abssisca,ordinate);
cprintf(" ");
}
for(abssisca=2;abssisca<=80;abssisca++)
{
gotoxy(abssisca,add);
cprintf(" ");
}
delay(300);
}
textcolor(15);
clrscr();
gotoxy(1,1);
}
void PRIME(int n,int &prime)
{
if(n<2)
prime=0;
else
{
int i;
prime=1;
for(i=2;i<=sqrt(n);i++)
if(n%i==0)
{
prime=0;
break;
}
}
}
void PALLINDROME(int n, int &pallindrome)
{
int len,i,N,a;
for(i=0,N=n;N!=0;i++)
N/=10;
len=i-1;
for(i=1,N=n,a=0;N!=0;i++,len--)
{
a=a+(N%10)*pow(10,len);
N/=10;
}
if(a==n)
pallindrome=1;
else
pallindrome=0;
}
void ARMSTRONG(int n, int &armstrong)
{
int i,a,N=n;
for(i=1,a=0;N!=0;i++)
{
a=a+pow(N%10,3);
N/=10;
}
if(a==n)
armstrong=1;
else
armstrong=0;
}
void main()
{
textbackground(BLUE);
clrscr();
int x,y,i,n,len,LEN,prime,armstrong,pallindrome;
char c,str[30],STR[30];
block(3,1,0);
block(23,1,1);
block(43,1,2);
block(63,1,3);
block(3,9,4);
block(23,9,5);
block(43,9,6);
block(63,9,7);
block(13,17,8);
block(33,17,10);
block(53,17,9);
for(x=40,y=12,i=0;1==1;)
{
block(3,1,0);
block(23,1,1);
block(43,1,2);
block(63,1,3);
block(3,9,4);
block(23,9,5);
block(43,9,6);
block(63,9,7);
block(13,17,8);
block(33,17,10);
block(53,17,9);
textbackground(BLUE);
gotoxy(x-1,y-1);
textcolor(2);
cprintf("þ þ");
gotoxy(x-2,y);
cprintf("þ ");
textcolor(3);
cprintf("Û");
textcolor(2);
cprintf(" þ");
gotoxy(x-1,y+1);
cprintf("þ þ");
c=getch();
textbackground(BLUE);
gotoxy(x-2,y-1);
textcolor(2);
cprintf(" ");
gotoxy(x-2,y);
cprintf(" ");
textcolor(3);
cprintf(" ");
textcolor(2);
cprintf(" ");
gotoxy(x-2,y+1);
cprintf(" ");
if(c=='w' || c=='W')
y--;
else if(c=='s' || c=='S')
y++;
else if(c=='a' || c=='A')
x--;
else if(c=='d' || c=='D')
x++;
else if(c==' ' || c==13)
{
if((x>=33 && x<=33+16) && (y>=17 && y<=17+7))
{
press(33,17,10);
str[i]='\0';
goto submit;
}
else if((x>=3 && x<=3+16) && (y>=1 && y<=1+7))
{
press(3,1,0);
str[i]='0';
i++;
}
else if((x>=23 && x<=23+16) && (y>=1 && y<=1+7))
{
press(23,1,1);
str[i]='1';
i++;
}
else if((x>=43 && x<=43+16) && (y>=1 && y<=1+7))
{
press(43,1,2);
str[i]='2';
i++;
}
else if((x>=63 && x<=63+16) && (y>=1 && y<=1+7))
{
press(63,1,3);
str[i]='3';
i++;
}
else if((x>=3 && x<=3+16) && (y>=9 && y<=9+7))
{
press(3,9,4);
str[i]='4';
i++;
}
else if((x>=23 && x<=23+16) && (y>=9 && y<=9+7))
{
press(23,9,5);
str[i]='5';
i++;
}
else if((x>=43 && x<=43+16) && (y>=9 && y<=9+7))
{
press(43,9,6);
str[i]='6';
i++;
}
else if((x>=63 && x<=63+16) && (y>=9 && y<=9+7))
{
press(63,9,7);
str[i]='7';
i++;
}
else if((x>=13 && x<=13+16) && (y>=17 && y<=17+7))
{
press(13,17,8);
str[i]='8';
i++;
}
else if((x>=53 && x<=53+16) && (y>=17 && y<=17+7))
{
press(53,17,9);
str[i]='9';
i++;
}
}
}
submit:
textbackground(0);
textcolor(15);
clrscr();
LEN=i;
len=i-1;
for(n=0,i=0;len>=0;i++,len--)
n=n+(str[i]-48)*pow(10,len);
sprintf(STR," NUMBER:'\/=%s' ",str);
sprintf(str,"%s",STR);
for(i=1;i<=LEN;i++)
{
sprintf(STR,"%s-",str);
sprintf(str,"%s",STR);
}
display(STR,10,14,6);
textbackground(0);
textcolor(15);
textcolor(YELLOW);
cprintf(" ALL DETAILS\n\r ÄÄÄÄÄÄÄÄÄÄÄ");
textcolor(GREEN);
cprintf("\n\r NUMBER: ");
textcolor(CYAN);
cprintf("%d",n);
textcolor(GREEN);
cprintf("\n\r EVEN: ");
textcolor(CYAN);
if(n%2==0)
cprintf("YES");
else
cprintf("NO");
textcolor(GREEN);
cprintf("\n\rPALLINDROME: ");
textcolor(CYAN);
PALLINDROME(n,pallindrome);
if(pallindrome==1)
cprintf("YES");
else
cprintf("NO");
textcolor(GREEN);
cprintf("\n\r PRIME: ");
textcolor(CYAN);
PRIME(n,prime);
if(prime==1)
cprintf("YES");
else
cprintf("NO");
textcolor(GREEN);
cprintf("\n\r ARMSTRONG: ");
textcolor(CYAN);
ARMSTRONG(n,armstrong);
if(armstrong==1)
cprintf("YES");
else
cprintf("NO");
getch();
}
CODING
#include<iostream.h>
#include<conio.h>
#include<dos.h>
#include<stdio.h>
#include<process.h>
#include<math.h>
/*void number(int x, int y,int N)
{
textcolor(CYAN);
textbackground(YELLOW);
x+=6;
y+=1;
switch(N)
{
case 1:
gotoxy(x,y);
cprintf("ÉÍÍ» ");
gotoxy(x,y+1);
cprintf(" º ");
gotoxy(x,y+2);
cprintf(" º ");
gotoxy(x,y+3);
cprintf(" º ");
gotoxy(x,y+4);
cprintf("ÍÍÍÊÍÍÍ");
break;
case 2:
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf(" º");
gotoxy(x,y+2);
cprintf("ÉÍÍÍÍͼ");
gotoxy(x,y+3);
cprintf("º ");
gotoxy(x,y+4);
cprintf("ÈÍÍÍÍͼ");
break;
case 3:
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf(" º");
gotoxy(x,y+2);
cprintf(" ÌÍÍ͹");
gotoxy(x,y+3);
cprintf(" º");
gotoxy(x,y+4);
cprintf("ÈÍÍÍÍͼ");
break;
case 4:
gotoxy(x,y);
cprintf("Ë Ë");
gotoxy(x,y+1);
cprintf("º º");
gotoxy(x,y+2);
cprintf("ÈÍÍÍÍ͹");
gotoxy(x,y+3);
cprintf(" º");
gotoxy(x,y+4);
cprintf(" Ê");
break;
case 5:
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf("º ");
gotoxy(x,y+2);
cprintf("ÈÍÍÍÍÍ»");
gotoxy(x,y+3);
cprintf(" º");
gotoxy(x,y+4);
cprintf("ÈÍÍÍÍͼ");
break;
case 6:
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf("º ");
gotoxy(x,y+2);
cprintf("ÌÍÍÍÍÍ»");
gotoxy(x,y+3);
cprintf("º º");
gotoxy(x,y+4);
cprintf("ÈÍÍÍÍͼ");
break;
case 7:
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf(" º");
gotoxy(x,y+2);
cprintf(" º");
gotoxy(x,y+3);
cprintf(" º");
gotoxy(x,y+4);
cprintf(" º ");
break;
case 8:
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf("º º");
gotoxy(x,y+2);
cprintf("ÌÍÍÍÍ͹");
gotoxy(x,y+3);
cprintf("º º");
gotoxy(x,y+4);
cprintf("ÈÍÍÍÍͼ");
break;
case 9:
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf("º º");
gotoxy(x,y+2);
cprintf("ÈÍÍÍÍ͹");
gotoxy(x,y+3);
cprintf(" º");
gotoxy(x,y+4);
cprintf("ÈÍÍÍÍͼ");
break;
case 0:
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf("º º");
gotoxy(x,y+2);
cprintf("º º");
gotoxy(x,y+3);
cprintf("º º");
gotoxy(x,y+4);
cprintf("ÈÍÍÍÍͼ");
break;
case 10:
x-=3;
gotoxy(x,y);
cprintf("ÉÍ _ ");
gotoxy(x,y+1);
cprintf("ÌÍ ÄÂÄ ³_> ");
gotoxy(x,y+2);
cprintf("Èͳ\\³³Úij \\ ");
gotoxy(x,y+3);
cprintf(" ÃÄ ");
gotoxy(x,y+4);
cprintf(" ÀÄ ");
break;
}
}
void block(int x,int y,int N)
{
int i,j,k;
textcolor(WHITE);
textbackground(0);
gotoxy(x+1,y);
cprintf(" ");
textbackground(YELLOW);
cprintf("ÚÄÄÄÄÄÄÄÄÄÄÄÄ¿");
gotoxy(x,y+1);
textbackground(RED);
cprintf(" ");
textbackground(YELLOW);
cprintf("³ ³");
gotoxy(x,y+2);
textbackground(RED);
cprintf(" ");
textbackground(YELLOW);
cprintf("³ ³");
gotoxy(x,y+3);
textbackground(RED);
cprintf(" ");
textbackground(YELLOW);
cprintf("³ ³");
gotoxy(x,y+4);
textbackground(RED);
cprintf(" ");
textbackground(YELLOW);
cprintf("³ ³");
gotoxy(x,y+5);
textbackground(RED);
cprintf(" ");
textbackground(YELLOW);
cprintf("³ ³");
gotoxy(x,y+6);
textbackground(RED);
cprintf(" ");
textbackground(YELLOW);
cprintf("ÀÄÄÄÄÄÄÄÄÄÄÄÄÙ");
gotoxy(x,y+7);
textbackground(RED);
cprintf(" ");
cprintf(" ");
number(x,y,N);
}
void press(int x, int y,int N)
{
int i,j,k;
textcolor(WHITE);
textbackground(0);
gotoxy(x+1,y);
cprintf(" ");
textbackground(0);
cprintf(" ");
gotoxy(x,y+1);
textbackground(0);
cprintf(" ");
textbackground(0);
cprintf(" ");
gotoxy(x,y+2);
textbackground(0);
cprintf(" ");
textbackground(0);
cprintf(" ");
gotoxy(x,y+3);
textbackground(0);
cprintf(" ");
textbackground(0);
cprintf(" ");
gotoxy(x,y+4);
textbackground(0);
cprintf(" ");
textbackground(0);
cprintf(" ");
gotoxy(x,y+5);
textbackground(0);
cprintf(" ");
textbackground(0);
cprintf(" ");
gotoxy(x,y+6);
textbackground(0);
cprintf(" ");
textbackground(0);
cprintf(" ");
gotoxy(x,y+7);
textbackground(0);
cprintf(" ");
cprintf(" ");
textbackground(0);
gotoxy(x+1,y);
cprintf("");
textbackground(YELLOW);
cprintf("ÚÄÄÄÄÄÄÄÄÄÄÄÄ¿");
gotoxy(x,y+1);
textbackground(RED);
cprintf(" ");
textbackground(YELLOW);
cprintf("³ ³");
gotoxy(x,y+2);
textbackground(RED);
cprintf(" ");
textbackground(YELLOW);
cprintf("³ ³");
gotoxy(x,y+3);
textbackground(RED);
cprintf(" ");
textbackground(YELLOW);
cprintf("³ ³");
gotoxy(x,y+4);
textbackground(RED);
cprintf(" ");
textbackground(YELLOW);
cprintf("³ ³");
gotoxy(x,y+5);
textbackground(RED);
cprintf(" ");
textbackground(YELLOW);
cprintf("³ ³");
gotoxy(x,y+6);
textbackground(RED);
cprintf(" ");
textbackground(YELLOW);
cprintf("ÀÄÄÄÄÄÄÄÄÄÄÄÄÙ");
gotoxy(x,y+7);
textbackground(RED);
cprintf(" ");
cprintf(" ");
number(x-1,y,N);
delay(100);
textcolor(WHITE);
textbackground(0);
gotoxy(x+1,y);
cprintf(" ");
textbackground(0);
cprintf(" ");
gotoxy(x,y+1);
textbackground(0);
cprintf(" ");
textbackground(0);
cprintf(" ");
gotoxy(x,y+2);
textbackground(0);
cprintf(" ");
textbackground(0);
cprintf(" ");
gotoxy(x,y+3);
textbackground(0);
cprintf(" ");
textbackground(0);
cprintf(" ");
gotoxy(x,y+4);
textbackground(0);
cprintf(" ");
textbackground(0);
cprintf(" ");
gotoxy(x,y+5);
textbackground(0);
cprintf(" ");
textbackground(0);
cprintf(" ");
gotoxy(x,y+6);
textbackground(0);
cprintf(" ");
textbackground(0);
cprintf(" ");
gotoxy(x,y+7);
textbackground(0);
cprintf(" ");
cprintf(" ");
y++;
textbackground(0);
gotoxy(x,y);
textbackground(YELLOW);
cprintf("ÚÄÄÄÄÄÄÄÄÄÄÄÄ¿");
gotoxy(x,y+1);
textbackground(RED);
cprintf("");
textbackground(YELLOW);
cprintf("³ ³");
gotoxy(x,y+2);
textbackground(RED);
cprintf("");
textbackground(YELLOW);
cprintf("³ ³");
gotoxy(x,y+3);
textbackground(RED);
cprintf("");
textbackground(YELLOW);
cprintf("³ ³");
gotoxy(x,y+4);
textbackground(RED);
cprintf("");
textbackground(YELLOW);
cprintf("³ ³");
gotoxy(x,y+5);
textbackground(RED);
cprintf("");
textbackground(YELLOW);
cprintf("³ ³");
gotoxy(x,y+6);
textbackground(RED);
cprintf("");
textbackground(YELLOW);
cprintf("ÀÄÄÄÄÄÄÄÄÄÄÄÄÙ");
gotoxy(x,y+7);
textbackground(RED);
cprintf("");
number(x-2,y,N);
delay(100);
textcolor(WHITE);
y--;
textbackground(0);
gotoxy(x+1,y);
cprintf(" ");
textbackground(0);
cprintf(" ");
gotoxy(x,y+1);
textbackground(0);
cprintf(" ");
textbackground(0);
cprintf(" ");
gotoxy(x,y+2);
textbackground(0);
cprintf(" ");
textbackground(0);
cprintf(" ");
gotoxy(x,y+3);
textbackground(0);
cprintf(" ");
textbackground(0);
cprintf(" ");
gotoxy(x,y+4);
textbackground(0);
cprintf(" ");
textbackground(0);
cprintf(" ");
gotoxy(x,y+5);
textbackground(0);
cprintf(" ");
textbackground(0);
cprintf(" ");
gotoxy(x,y+6);
textbackground(0);
cprintf(" ");
textbackground(0);
cprintf(" ");
gotoxy(x,y+7);
textbackground(0);
cprintf(" ");
cprintf(" ");
textbackground(0);
gotoxy(x+1,y);
cprintf("");
textbackground(YELLOW);
cprintf("ÚÄÄÄÄÄÄÄÄÄÄÄÄ¿");
gotoxy(x,y+1);
textbackground(RED);
cprintf(" ");
textbackground(YELLOW);
cprintf("³ ³");
gotoxy(x,y+2);
textbackground(RED);
cprintf(" ");
textbackground(YELLOW);
cprintf("³ ³");
gotoxy(x,y+3);
textbackground(RED);
cprintf(" ");
textbackground(YELLOW);
cprintf("³ ³");
gotoxy(x,y+4);
textbackground(RED);
cprintf(" ");
textbackground(YELLOW);
cprintf("³ ³");
gotoxy(x,y+5);
textbackground(RED);
cprintf(" ");
textbackground(YELLOW);
cprintf("³ ³");
gotoxy(x,y+6);
textbackground(RED);
cprintf(" ");
textbackground(YELLOW);
cprintf("ÀÄÄÄÄÄÄÄÄÄÄÄÄÙ");
gotoxy(x,y+7);
textbackground(RED);
cprintf(" ");
cprintf(" ");
number(x-1,y,N);
delay(100);
textcolor(WHITE);
textbackground(0);
gotoxy(x+1,y);
cprintf(" ");
textbackground(0);
cprintf(" ");
gotoxy(x,y+1);
textbackground(0);
cprintf(" ");
textbackground(0);
cprintf(" ");
gotoxy(x,y+2);
textbackground(0);
cprintf(" ");
textbackground(0);
cprintf(" ");
gotoxy(x,y+3);
textbackground(0);
cprintf(" ");
textbackground(0);
cprintf(" ");
gotoxy(x,y+4);
textbackground(0);
cprintf(" ");
textbackground(0);
cprintf(" ");
gotoxy(x,y+5);
textbackground(0);
cprintf(" ");
textbackground(0);
cprintf(" ");
gotoxy(x,y+6);
textbackground(0);
cprintf(" ");
textbackground(0);
cprintf(" ");
gotoxy(x,y+7);
textbackground(0);
cprintf(" ");
cprintf(" ");
textbackground(0);
gotoxy(x+1,y);
cprintf(" ");
textbackground(YELLOW);
cprintf("ÚÄÄÄÄÄÄÄÄÄÄÄÄ¿");
gotoxy(x,y+1);
textbackground(RED);
cprintf(" ");
textbackground(YELLOW);
cprintf("³ ³");
gotoxy(x,y+2);
textbackground(RED);
cprintf(" ");
textbackground(YELLOW);
cprintf("³ ³");
gotoxy(x,y+3);
textbackground(RED);
cprintf(" ");
textbackground(YELLOW);
cprintf("³ ³");
gotoxy(x,y+4);
textbackground(RED);
cprintf(" ");
textbackground(YELLOW);
cprintf("³ ³");
gotoxy(x,y+5);
textbackground(RED);
cprintf(" ");
textbackground(YELLOW);
cprintf("³ ³");
gotoxy(x,y+6);
textbackground(RED);
cprintf(" ");
textbackground(YELLOW);
cprintf("ÀÄÄÄÄÄÄÄÄÄÄÄÄÙ");
gotoxy(x,y+7);
textbackground(RED);
cprintf(" ");
cprintf(" ");
number(x,y,N);
} */
void number(int x, int y,int N)
{
textcolor(BLACK);
textbackground(LIGHTGRAY);
x+=6;
y+=1;
switch(N)
{
case 1:
gotoxy(x,y);
cprintf("ÉÍÍ» ");
gotoxy(x,y+1);
cprintf(" º ");
gotoxy(x,y+2);
cprintf(" º ");
gotoxy(x,y+3);
cprintf(" º ");
gotoxy(x,y+4);
cprintf("ÍÍÍÊÍÍÍ");
break;
case 2:
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf(" º");
gotoxy(x,y+2);
cprintf("ÉÍÍÍÍͼ");
gotoxy(x,y+3);
cprintf("º ");
gotoxy(x,y+4);
cprintf("ÈÍÍÍÍͼ");
break;
case 3:
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf(" º");
gotoxy(x,y+2);
cprintf(" ÌÍÍ͹");
gotoxy(x,y+3);
cprintf(" º");
gotoxy(x,y+4);
cprintf("ÈÍÍÍÍͼ");
break;
case 4:
gotoxy(x,y);
cprintf("Ë Ë");
gotoxy(x,y+1);
cprintf("º º");
gotoxy(x,y+2);
cprintf("ÈÍÍÍÍ͹");
gotoxy(x,y+3);
cprintf(" º");
gotoxy(x,y+4);
cprintf(" Ê");
break;
case 5:
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf("º ");
gotoxy(x,y+2);
cprintf("ÈÍÍÍÍÍ»");
gotoxy(x,y+3);
cprintf(" º");
gotoxy(x,y+4);
cprintf("ÈÍÍÍÍͼ");
break;
case 6:
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf("º ");
gotoxy(x,y+2);
cprintf("ÌÍÍÍÍÍ»");
gotoxy(x,y+3);
cprintf("º º");
gotoxy(x,y+4);
cprintf("ÈÍÍÍÍͼ");
break;
case 7:
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf(" º");
gotoxy(x,y+2);
cprintf(" º");
gotoxy(x,y+3);
cprintf(" º");
gotoxy(x,y+4);
cprintf(" º ");
break;
case 8:
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf("º º");
gotoxy(x,y+2);
cprintf("ÌÍÍÍÍ͹");
gotoxy(x,y+3);
cprintf("º º");
gotoxy(x,y+4);
cprintf("ÈÍÍÍÍͼ");
break;
case 9:
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf("º º");
gotoxy(x,y+2);
cprintf("ÈÍÍÍÍ͹");
gotoxy(x,y+3);
cprintf(" º");
gotoxy(x,y+4);
cprintf("ÈÍÍÍÍͼ");
break;
case 0:
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf("º º");
gotoxy(x,y+2);
cprintf("º º");
gotoxy(x,y+3);
cprintf("º º");
gotoxy(x,y+4);
cprintf("ÈÍÍÍÍͼ");
break;
case 10:
x-=3;
gotoxy(x,y);
cprintf("ÉÍ _ ");
gotoxy(x,y+1);
cprintf("ÌÍ ÄÂÄ ³_> ");
gotoxy(x,y+2);
cprintf("Èͳ\\³³Úij \\ ");
gotoxy(x,y+3);
cprintf(" ÃÄ ");
gotoxy(x,y+4);
cprintf(" ÀÄ ");
break;
}
}
void block(int x,int y,int N)
{
int i,j,k;
textcolor(WHITE);
textbackground(BLUE);
gotoxy(x+1,y);
cprintf(" ");
textbackground(LIGHTGRAY);
cprintf("ÚÄÄÄÄÄÄÄÄÄÄÄÄ¿");
gotoxy(x,y+1);
textbackground(0);
cprintf(" ");
textbackground(LIGHTGRAY);
cprintf("³ ³");
gotoxy(x,y+2);
textbackground(0);
cprintf(" ");
textbackground(LIGHTGRAY);
cprintf("³ ³");
gotoxy(x,y+3);
textbackground(0);
cprintf(" ");
textbackground(LIGHTGRAY);
cprintf("³ ³");
gotoxy(x,y+4);
textbackground(0);
cprintf(" ");
textbackground(LIGHTGRAY);
cprintf("³ ³");
gotoxy(x,y+5);
textbackground(0);
cprintf(" ");
textbackground(LIGHTGRAY);
cprintf("³ ³");
gotoxy(x,y+6);
textbackground(0);
cprintf(" ");
textbackground(LIGHTGRAY);
cprintf("ÀÄÄÄÄÄÄÄÄÄÄÄÄÙ");
gotoxy(x,y+7);
textbackground(0);
cprintf(" ");
cprintf(" ");
number(x,y,N);
}
void press(int x, int y,int N)
{
int i,j,k;
textcolor(WHITE);
textbackground(BLUE);
gotoxy(x+1,y);
cprintf(" ");
textbackground(BLUE);
cprintf(" ");
gotoxy(x,y+1);
textbackground(BLUE);
cprintf(" ");
textbackground(BLUE);
cprintf(" ");
gotoxy(x,y+2);
textbackground(BLUE);
cprintf(" ");
textbackground(BLUE);
cprintf(" ");
gotoxy(x,y+3);
textbackground(BLUE);
cprintf(" ");
textbackground(BLUE);
cprintf(" ");
gotoxy(x,y+4);
textbackground(BLUE);
cprintf(" ");
textbackground(BLUE);
cprintf(" ");
gotoxy(x,y+5);
textbackground(BLUE);
cprintf(" ");
textbackground(BLUE);
cprintf(" ");
gotoxy(x,y+6);
textbackground(BLUE);
cprintf(" ");
textbackground(BLUE);
cprintf(" ");
gotoxy(x,y+7);
textbackground(BLUE);
cprintf(" ");
cprintf(" ");
textbackground(BLUE);
gotoxy(x+1,y);
cprintf("");
textbackground(LIGHTGRAY);
cprintf("ÚÄÄÄÄÄÄÄÄÄÄÄÄ¿");
gotoxy(x,y+1);
textbackground(0);
cprintf(" ");
textbackground(LIGHTGRAY);
cprintf("³ ³");
gotoxy(x,y+2);
textbackground(0);
cprintf(" ");
textbackground(LIGHTGRAY);
cprintf("³ ³");
gotoxy(x,y+3);
textbackground(0);
cprintf(" ");
textbackground(LIGHTGRAY);
cprintf("³ ³");
gotoxy(x,y+4);
textbackground(0);
cprintf(" ");
textbackground(LIGHTGRAY);
cprintf("³ ³");
gotoxy(x,y+5);
textbackground(0);
cprintf(" ");
textbackground(LIGHTGRAY);
cprintf("³ ³");
gotoxy(x,y+6);
textbackground(0);
cprintf(" ");
textbackground(LIGHTGRAY);
cprintf("ÀÄÄÄÄÄÄÄÄÄÄÄÄÙ");
gotoxy(x,y+7);
textbackground(0);
cprintf(" ");
cprintf(" ");
number(x-1,y,N);
delay(100);
textcolor(WHITE);
textbackground(BLUE);
gotoxy(x+1,y);
cprintf(" ");
textbackground(BLUE);
cprintf(" ");
gotoxy(x,y+1);
textbackground(BLUE);
cprintf(" ");
textbackground(BLUE);
cprintf(" ");
gotoxy(x,y+2);
textbackground(BLUE);
cprintf(" ");
textbackground(BLUE);
cprintf(" ");
gotoxy(x,y+3);
textbackground(BLUE);
cprintf(" ");
textbackground(BLUE);
cprintf(" ");
gotoxy(x,y+4);
textbackground(BLUE);
cprintf(" ");
textbackground(BLUE);
cprintf(" ");
gotoxy(x,y+5);
textbackground(BLUE);
cprintf(" ");
textbackground(BLUE);
cprintf(" ");
gotoxy(x,y+6);
textbackground(BLUE);
cprintf(" ");
textbackground(BLUE);
cprintf(" ");
gotoxy(x,y+7);
textbackground(BLUE);
cprintf(" ");
cprintf(" ");
y++;
textbackground(BLUE);
gotoxy(x,y);
textbackground(LIGHTGRAY);
cprintf("ÚÄÄÄÄÄÄÄÄÄÄÄÄ¿");
gotoxy(x,y+1);
textbackground(0);
cprintf("");
textbackground(LIGHTGRAY);
cprintf("³ ³");
gotoxy(x,y+2);
textbackground(0);
cprintf("");
textbackground(LIGHTGRAY);
cprintf("³ ³");
gotoxy(x,y+3);
textbackground(0);
cprintf("");
textbackground(LIGHTGRAY);
cprintf("³ ³");
gotoxy(x,y+4);
textbackground(0);
cprintf("");
textbackground(LIGHTGRAY);
cprintf("³ ³");
gotoxy(x,y+5);
textbackground(0);
cprintf("");
textbackground(LIGHTGRAY);
cprintf("³ ³");
gotoxy(x,y+6);
textbackground(0);
cprintf("");
textbackground(LIGHTGRAY);
cprintf("ÀÄÄÄÄÄÄÄÄÄÄÄÄÙ");
gotoxy(x,y+7);
textbackground(0);
cprintf("");
number(x-2,y,N);
delay(100);
textcolor(WHITE);
y--;
textbackground(BLUE);
gotoxy(x+1,y);
cprintf(" ");
textbackground(BLUE);
cprintf(" ");
gotoxy(x,y+1);
textbackground(BLUE);
cprintf(" ");
textbackground(BLUE);
cprintf(" ");
gotoxy(x,y+2);
textbackground(BLUE);
cprintf(" ");
textbackground(BLUE);
cprintf(" ");
gotoxy(x,y+3);
textbackground(BLUE);
cprintf(" ");
textbackground(BLUE);
cprintf(" ");
gotoxy(x,y+4);
textbackground(BLUE);
cprintf(" ");
textbackground(BLUE);
cprintf(" ");
gotoxy(x,y+5);
textbackground(BLUE);
cprintf(" ");
textbackground(BLUE);
cprintf(" ");
gotoxy(x,y+6);
textbackground(BLUE);
cprintf(" ");
textbackground(BLUE);
cprintf(" ");
gotoxy(x,y+7);
textbackground(BLUE);
cprintf(" ");
cprintf(" ");
textbackground(BLUE);
gotoxy(x+1,y);
cprintf("");
textbackground(LIGHTGRAY);
cprintf("ÚÄÄÄÄÄÄÄÄÄÄÄÄ¿");
gotoxy(x,y+1);
textbackground(0);
cprintf(" ");
textbackground(LIGHTGRAY);
cprintf("³ ³");
gotoxy(x,y+2);
textbackground(0);
cprintf(" ");
textbackground(LIGHTGRAY);
cprintf("³ ³");
gotoxy(x,y+3);
textbackground(0);
cprintf(" ");
textbackground(LIGHTGRAY);
cprintf("³ ³");
gotoxy(x,y+4);
textbackground(0);
cprintf(" ");
textbackground(LIGHTGRAY);
cprintf("³ ³");
gotoxy(x,y+5);
textbackground(0);
cprintf(" ");
textbackground(LIGHTGRAY);
cprintf("³ ³");
gotoxy(x,y+6);
textbackground(0);
cprintf(" ");
textbackground(LIGHTGRAY);
cprintf("ÀÄÄÄÄÄÄÄÄÄÄÄÄÙ");
gotoxy(x,y+7);
textbackground(0);
cprintf(" ");
cprintf(" ");
number(x-1,y,N);
delay(100);
textcolor(WHITE);
textbackground(BLUE);
gotoxy(x+1,y);
cprintf(" ");
textbackground(BLUE);
cprintf(" ");
gotoxy(x,y+1);
textbackground(BLUE);
cprintf(" ");
textbackground(BLUE);
cprintf(" ");
gotoxy(x,y+2);
textbackground(BLUE);
cprintf(" ");
textbackground(BLUE);
cprintf(" ");
gotoxy(x,y+3);
textbackground(BLUE);
cprintf(" ");
textbackground(BLUE);
cprintf(" ");
gotoxy(x,y+4);
textbackground(BLUE);
cprintf(" ");
textbackground(BLUE);
cprintf(" ");
gotoxy(x,y+5);
textbackground(BLUE);
cprintf(" ");
textbackground(BLUE);
cprintf(" ");
gotoxy(x,y+6);
textbackground(BLUE);
cprintf(" ");
textbackground(BLUE);
cprintf(" ");
gotoxy(x,y+7);
textbackground(BLUE);
cprintf(" ");
cprintf(" ");
textbackground(BLUE);
gotoxy(x+1,y);
cprintf(" ");
textbackground(LIGHTGRAY);
cprintf("ÚÄÄÄÄÄÄÄÄÄÄÄÄ¿");
gotoxy(x,y+1);
textbackground(0);
cprintf(" ");
textbackground(LIGHTGRAY);
cprintf("³ ³");
gotoxy(x,y+2);
textbackground(0);
cprintf(" ");
textbackground(LIGHTGRAY);
cprintf("³ ³");
gotoxy(x,y+3);
textbackground(0);
cprintf(" ");
textbackground(LIGHTGRAY);
cprintf("³ ³");
gotoxy(x,y+4);
textbackground(0);
cprintf(" ");
textbackground(LIGHTGRAY);
cprintf("³ ³");
gotoxy(x,y+5);
textbackground(0);
cprintf(" ");
textbackground(LIGHTGRAY);
cprintf("³ ³");
gotoxy(x,y+6);
textbackground(0);
cprintf(" ");
textbackground(LIGHTGRAY);
cprintf("ÀÄÄÄÄÄÄÄÄÄÄÄÄÙ");
gotoxy(x,y+7);
textbackground(0);
cprintf(" ");
cprintf(" ");
number(x,y,N);
}
void display(char str[80],int col, int c1,int c2)
{
int choice,abcd,ordinate,abssisca,space,add,hint=0;
clrscr();
clrscr();
textcolor(col);
for(abssisca=2;abssisca<=80;abssisca++)
{
for(ordinate=2;ordinate<=24;ordinate++)
{
gotoxy(abssisca,ordinate);
cprintf("Û");
}
}
for(ordinate=13,add=13;add<=23;ordinate--,add++)
{
for(abssisca=3;abssisca<=79;abssisca++)
{
gotoxy(abssisca,ordinate);
cprintf(" ");
}
for(abssisca=3;abssisca<=79;abssisca++)
{
gotoxy(abssisca,add);
cprintf(" ");
}
delay(300);
}
for(ordinate=2;ordinate<=24;ordinate++)
{
for(abssisca=2;abssisca<=80;abssisca=abssisca+78)
{
gotoxy(abssisca,ordinate);
cprintf("Û");
}
}
textcolor(c1);
for(abssisca=4,ordinate=4,choice=0;str[choice]!='\0';choice++,abssisca=space+abssisca)
{
// choice=getch();
// if(choice=='\\')
// goto label;
space=7;
switch(str[choice])
{
case 65: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("Û Û");
break;
case 97: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf(" Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 66: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛ ");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛ ");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛ ");
break;
case 98: gotoxy(abssisca,ordinate);
cprintf("Û ");
gotoxy(abssisca,ordinate+1);
cprintf("Û ");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 67: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("Û ");
gotoxy(abssisca,ordinate+2);
cprintf("Û ");
gotoxy(abssisca,ordinate+3);
cprintf("Û ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 99: gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+2);
cprintf("Û ");
gotoxy(abssisca,ordinate+3);
cprintf("Û ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 68: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛ ");
gotoxy(abssisca,ordinate+1);
cprintf("Û ÛÛ");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û");
gotoxy(abssisca,ordinate+3);
cprintf("Û ÛÛ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛ ");
break;
case 100: gotoxy(abssisca,ordinate);
cprintf(" Û");
gotoxy(abssisca,ordinate+1);
cprintf(" Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 69: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("ÛÛ ");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("ÛÛ ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 101: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("Û ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 70: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("ÛÛ ");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("ÛÛ ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛ ");
break;
case 102: gotoxy(abssisca,ordinate);
cprintf(" ÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf(" Û ");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛ ");
break;
case 71: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("Û ");
gotoxy(abssisca,ordinate+2);
cprintf("Û ÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 103: gotoxy(abssisca,ordinate);
cprintf(" ÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf(" ÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 72: gotoxy(abssisca,ordinate);
cprintf("Û Û");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("Û Û");
break;
case 104: gotoxy(abssisca,ordinate);
cprintf("Û ");
gotoxy(abssisca,ordinate+1);
cprintf("Û ");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛ ");
gotoxy(abssisca,ordinate+3);
cprintf("Û ÛÛ");
gotoxy(abssisca,ordinate+4);
cprintf("Û Û");
break;
case 73: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf(" Û ");
gotoxy(abssisca,ordinate+2);
cprintf(" Û ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 105: gotoxy(abssisca,ordinate);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+1);
cprintf(" ");
gotoxy(abssisca,ordinate+2);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+3);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+4);
cprintf(" ÛÛÛÛ");
break;
case 74: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf(" Û ");
gotoxy(abssisca,ordinate+2);
cprintf(" Û ");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛ ");
break;
case 106: gotoxy(abssisca,ordinate);
cprintf(" Û");
gotoxy(abssisca,ordinate+1);
cprintf(" Û");
gotoxy(abssisca,ordinate+2);
cprintf(" Û");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 75: gotoxy(abssisca,ordinate);
cprintf("Û ÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("Û ÛÛ ");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛ ");
gotoxy(abssisca,ordinate+3);
cprintf("Û ÛÛ ");
gotoxy(abssisca,ordinate+4);
cprintf("Û ÛÛ");
break;
case 107: gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û ");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û ");
gotoxy(abssisca,ordinate+3);
cprintf("ÛÛ ");
gotoxy(abssisca,ordinate+4);
cprintf("Û Û ");
break;
case 76: gotoxy(abssisca,ordinate);
cprintf("Û ");
gotoxy(abssisca,ordinate+1);
cprintf("Û ");
gotoxy(abssisca,ordinate+2);
cprintf("Û ");
gotoxy(abssisca,ordinate+3);
cprintf("Û ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 108: gotoxy(abssisca,ordinate);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+1);
cprintf(" Û ");
gotoxy(abssisca,ordinate+2);
cprintf(" Û ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 77: gotoxy(abssisca,ordinate);
cprintf("Û Û");
gotoxy(abssisca,ordinate+1);
cprintf("ÛÛ ÛÛ");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û Û");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("Û Û");
break;
case 109: gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û Û");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("Û Û Û");
break;
case 78: gotoxy(abssisca,ordinate);
cprintf("Û Û");
gotoxy(abssisca,ordinate+1);
cprintf("ÛÛ Û");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û Û");
gotoxy(abssisca,ordinate+3);
cprintf("Û ÛÛ");
gotoxy(abssisca,ordinate+4);
cprintf("Û Û");
break;
case 110: gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf(" ");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛ ");
gotoxy(abssisca,ordinate+3);
cprintf("Û ÛÛ");
gotoxy(abssisca,ordinate+4);
cprintf("Û Û");
break;
case 79: gotoxy(abssisca,ordinate);
cprintf(" ÛÛÛ ");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf(" ÛÛÛ ");
break;
case 111: gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf(" ");
gotoxy(abssisca,ordinate+2);
cprintf(" ÛÛÛ ");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf(" ÛÛÛ ");
break;
case 80: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛ ");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛ ");
gotoxy(abssisca,ordinate+3);
cprintf("Û ");
gotoxy(abssisca,ordinate+4);
cprintf("Û ");
break;
case 112: gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf("ÛÛÛÛ ");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û");
gotoxy(abssisca,ordinate+3);
cprintf("ÛÛÛÛ ");
gotoxy(abssisca,ordinate+4);
cprintf("Û ");
break;
case 81: gotoxy(abssisca,ordinate);
cprintf(" ÛÛÛ ");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û Û");
gotoxy(abssisca,ordinate+4);
cprintf(" ÛÛ Û");
break;
case 113: gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf(" ÛÛÛÛ");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û");
gotoxy(abssisca,ordinate+3);
cprintf(" ÛÛÛÛ");
gotoxy(abssisca,ordinate+4);
cprintf(" ÛÛ");
break;
case 82: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û ");
gotoxy(abssisca,ordinate+4);
cprintf("Û ÛÛ");
break;
case 114: gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf(" ");
gotoxy(abssisca,ordinate+2);
cprintf("Û ÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("ÛÛ ");
gotoxy(abssisca,ordinate+4);
cprintf("Û ");
break;
case 83: gotoxy(abssisca,ordinate);
cprintf(" ÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("Û ");
gotoxy(abssisca,ordinate+2);
cprintf(" ÛÛÛ ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛ ");
break;
case 115: gotoxy(abssisca,ordinate);
cprintf(" ÛÛÛ ");
gotoxy(abssisca,ordinate+1);
cprintf("Û ");
gotoxy(abssisca,ordinate+2);
cprintf(" ÛÛÛ ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û");
gotoxy(abssisca,ordinate+4);
cprintf(" ÛÛÛ ");
break;
case 84: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf(" Û ");
gotoxy(abssisca,ordinate+2);
cprintf(" Û ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û ");
gotoxy(abssisca,ordinate+4);
cprintf(" Û ");
break;
case 116: gotoxy(abssisca,ordinate);
cprintf(" Û ");
gotoxy(abssisca,ordinate+1);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+2);
cprintf(" Û ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û ");
gotoxy(abssisca,ordinate+4);
cprintf(" ÛÛÛ");
break;
case 85: gotoxy(abssisca,ordinate);
cprintf("Û Û");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 117: gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf(" ");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 86: gotoxy(abssisca,ordinate);
cprintf("Û Û");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û");
gotoxy(abssisca,ordinate+3);
cprintf("ÛÛ ÛÛ");
gotoxy(abssisca,ordinate+4);
cprintf(" ÛÛÛ ");
break;
case 118: gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf(" ");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û");
gotoxy(abssisca,ordinate+3);
cprintf("ÛÛ ÛÛ");
gotoxy(abssisca,ordinate+4);
cprintf(" ÛÛÛ ");
break;
case 87: gotoxy(abssisca,ordinate);
cprintf("Û Û");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û Û");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛ ÛÛ");
break;
case 119: gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf(" ");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛ ÛÛ");
break;
case 88: gotoxy(abssisca,ordinate);
cprintf("Û Û");
gotoxy(abssisca,ordinate+1);
cprintf(" Û Û ");
gotoxy(abssisca,ordinate+2);
cprintf(" Û ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û Û ");
gotoxy(abssisca,ordinate+4);
cprintf("Û Û");
break;
case 120: gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf(" ");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û");
gotoxy(abssisca,ordinate+3);
cprintf(" ÛÛÛ ");
gotoxy(abssisca,ordinate+4);
cprintf("Û Û");
break;
case 89: gotoxy(abssisca,ordinate);
cprintf("Û Û");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û ");
gotoxy(abssisca,ordinate+4);
cprintf(" Û ");
break;
case 121: gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 90: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf(" Û ");
gotoxy(abssisca,ordinate+2);
cprintf(" Û ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 122: gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+2);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+3);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 48: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 49: gotoxy(abssisca,ordinate);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û ");
gotoxy(abssisca,ordinate+2);
cprintf(" Û ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 50: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf(" Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("Û ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 51: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf(" Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 52: gotoxy(abssisca,ordinate);
cprintf("Û Û");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û");
gotoxy(abssisca,ordinate+4);
cprintf(" Û");
break;
case 53: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("Û ");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 54: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("Û ");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 55: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf(" ÛÛ");
gotoxy(abssisca,ordinate+2);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+3);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛ ");
break;
case 56: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 57: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case ' ': space=7;
break;
case 33: gotoxy(abssisca,ordinate);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+1);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+2);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+3);
cprintf(" ");
gotoxy(abssisca,ordinate+4);
cprintf(" ÛÛ ");
break;
case '=': gotoxy(abssisca,ordinate);
cprintf(" Û ");
gotoxy(abssisca,ordinate+1);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+4);
cprintf(" Û ");
break;
case '-': gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf(" ");
gotoxy(abssisca,ordinate+2);
cprintf(" ");
gotoxy(abssisca,ordinate+3);
cprintf(" ");
gotoxy(abssisca,ordinate+4);
cprintf(" ");
break;
case ':': gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+2);
cprintf(" ");
gotoxy(abssisca,ordinate+3);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+4);
cprintf(" ");
break;
case '.': gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf(" ");
gotoxy(abssisca,ordinate+2);
cprintf(" ");
gotoxy(abssisca,ordinate+3);
cprintf(" ");
gotoxy(abssisca,ordinate+4);
cprintf(" ÛÛ ");
break;
case '/': textcolor(c2+128);
space=0;
break;
case ',': goto label;
case '|': getch();
textcolor(c1);
default: abssisca=4;
ordinate=7+ordinate;
space=0;
hint=1;
break;
}
if(str[choice+1]!=',')
{
if((ordinate>=18 && abssisca>=74) || (ordinate>18 && hint==1))
{
delay(10000);
for(abssisca=41,add=41;add<=79;abssisca--,add++)
{
for(ordinate=3;ordinate<=23;ordinate++)
{
gotoxy(abssisca,ordinate);
cprintf(" ");
}
for(ordinate=3;ordinate<=23;ordinate++)
{
gotoxy(add,ordinate);
cprintf(" ");
}
delay(100);
}
abssisca=4;
space=0;
ordinate=4;
hint=0;
textcolor(c2);
}
else if(abssisca>=74)
{
abssisca=4;
space=0;
ordinate=7+ordinate;
}
}
}
label:
getch();
for(ordinate=13,add=13;add<=24;ordinate--,add++)
{
for(abssisca=2;abssisca<=80;abssisca++)
{
gotoxy(abssisca,ordinate);
cprintf(" ");
}
for(abssisca=2;abssisca<=80;abssisca++)
{
gotoxy(abssisca,add);
cprintf(" ");
}
delay(300);
}
textcolor(15);
clrscr();
gotoxy(1,1);
}
void PRIME(int n,int &prime)
{
if(n<2)
prime=0;
else
{
int i;
prime=1;
for(i=2;i<=sqrt(n);i++)
if(n%i==0)
{
prime=0;
break;
}
}
}
void PALLINDROME(int n, int &pallindrome)
{
int len,i,N,a;
for(i=0,N=n;N!=0;i++)
N/=10;
len=i-1;
for(i=1,N=n,a=0;N!=0;i++,len--)
{
a=a+(N%10)*pow(10,len);
N/=10;
}
if(a==n)
pallindrome=1;
else
pallindrome=0;
}
void ARMSTRONG(int n, int &armstrong)
{
int i,a,N=n;
for(i=1,a=0;N!=0;i++)
{
a=a+pow(N%10,3);
N/=10;
}
if(a==n)
armstrong=1;
else
armstrong=0;
}
void main()
{
textbackground(BLUE);
clrscr();
int x,y,i,n,len,LEN,prime,armstrong,pallindrome;
char c,str[30],STR[30];
block(3,1,0);
block(23,1,1);
block(43,1,2);
block(63,1,3);
block(3,9,4);
block(23,9,5);
block(43,9,6);
block(63,9,7);
block(13,17,8);
block(33,17,10);
block(53,17,9);
for(x=40,y=12,i=0;1==1;)
{
block(3,1,0);
block(23,1,1);
block(43,1,2);
block(63,1,3);
block(3,9,4);
block(23,9,5);
block(43,9,6);
block(63,9,7);
block(13,17,8);
block(33,17,10);
block(53,17,9);
textbackground(BLUE);
gotoxy(x-1,y-1);
textcolor(2);
cprintf("þ þ");
gotoxy(x-2,y);
cprintf("þ ");
textcolor(3);
cprintf("Û");
textcolor(2);
cprintf(" þ");
gotoxy(x-1,y+1);
cprintf("þ þ");
c=getch();
textbackground(BLUE);
gotoxy(x-2,y-1);
textcolor(2);
cprintf(" ");
gotoxy(x-2,y);
cprintf(" ");
textcolor(3);
cprintf(" ");
textcolor(2);
cprintf(" ");
gotoxy(x-2,y+1);
cprintf(" ");
if(c=='w' || c=='W')
y--;
else if(c=='s' || c=='S')
y++;
else if(c=='a' || c=='A')
x--;
else if(c=='d' || c=='D')
x++;
else if(c==' ' || c==13)
{
if((x>=33 && x<=33+16) && (y>=17 && y<=17+7))
{
press(33,17,10);
str[i]='\0';
goto submit;
}
else if((x>=3 && x<=3+16) && (y>=1 && y<=1+7))
{
press(3,1,0);
str[i]='0';
i++;
}
else if((x>=23 && x<=23+16) && (y>=1 && y<=1+7))
{
press(23,1,1);
str[i]='1';
i++;
}
else if((x>=43 && x<=43+16) && (y>=1 && y<=1+7))
{
press(43,1,2);
str[i]='2';
i++;
}
else if((x>=63 && x<=63+16) && (y>=1 && y<=1+7))
{
press(63,1,3);
str[i]='3';
i++;
}
else if((x>=3 && x<=3+16) && (y>=9 && y<=9+7))
{
press(3,9,4);
str[i]='4';
i++;
}
else if((x>=23 && x<=23+16) && (y>=9 && y<=9+7))
{
press(23,9,5);
str[i]='5';
i++;
}
else if((x>=43 && x<=43+16) && (y>=9 && y<=9+7))
{
press(43,9,6);
str[i]='6';
i++;
}
else if((x>=63 && x<=63+16) && (y>=9 && y<=9+7))
{
press(63,9,7);
str[i]='7';
i++;
}
else if((x>=13 && x<=13+16) && (y>=17 && y<=17+7))
{
press(13,17,8);
str[i]='8';
i++;
}
else if((x>=53 && x<=53+16) && (y>=17 && y<=17+7))
{
press(53,17,9);
str[i]='9';
i++;
}
}
}
submit:
textbackground(0);
textcolor(15);
clrscr();
LEN=i;
len=i-1;
for(n=0,i=0;len>=0;i++,len--)
n=n+(str[i]-48)*pow(10,len);
sprintf(STR," NUMBER:'\/=%s' ",str);
sprintf(str,"%s",STR);
for(i=1;i<=LEN;i++)
{
sprintf(STR,"%s-",str);
sprintf(str,"%s",STR);
}
display(STR,10,14,6);
textbackground(0);
textcolor(15);
textcolor(YELLOW);
cprintf(" ALL DETAILS\n\r ÄÄÄÄÄÄÄÄÄÄÄ");
textcolor(GREEN);
cprintf("\n\r NUMBER: ");
textcolor(CYAN);
cprintf("%d",n);
textcolor(GREEN);
cprintf("\n\r EVEN: ");
textcolor(CYAN);
if(n%2==0)
cprintf("YES");
else
cprintf("NO");
textcolor(GREEN);
cprintf("\n\rPALLINDROME: ");
textcolor(CYAN);
PALLINDROME(n,pallindrome);
if(pallindrome==1)
cprintf("YES");
else
cprintf("NO");
textcolor(GREEN);
cprintf("\n\r PRIME: ");
textcolor(CYAN);
PRIME(n,prime);
if(prime==1)
cprintf("YES");
else
cprintf("NO");
textcolor(GREEN);
cprintf("\n\r ARMSTRONG: ");
textcolor(CYAN);
ARMSTRONG(n,armstrong);
if(armstrong==1)
cprintf("YES");
else
cprintf("NO");
getch();
}
===========================================================================
No comments:
Post a Comment