===========================================================================
CODING
#include<all.h>
void main()
{
int x,y,A,i,B,C;
float j,s;
first();
second();
first();
clrscr();
for(i=-33,x=7,y=12;i<=33;x=x+3,i=i+3)
{
if(i==-33)
{
gotoxy(x+2,y);
cprintf("®");
}
else if(i==33)
{
gotoxy(x,y);
cprintf("¯");
}
else
{
gotoxy(x,y);
cprintf("ÄÂÄ");
gotoxy(x,y+1);
if(i==0);
cprintf("%d",i);
}
}
for(i=5,x=39,y=7;i>=-5;i--,y++)
{
gotoxy(x,y);
if(i==-5)
cprintf(" ");
else if(i==5)
cprintf(" ");
else
{
if(i==0)
cprintf("");
else if(i==1)
cprintf("\b\b0.25");
else if(i==-1)
cprintf("\b\b\b-0.25");
else if(i==2)
cprintf("\b0.5");
else if(i==-2)
cprintf("\b\b-0.5");
else if(i==3)
cprintf("\b\b0.86");
else if(i==-3)
cprintf("\b\b\b-0.86");
else if(i==4)
cprintf(" 1");
else if(i==-4)
cprintf("-1");
gotoxy(x+2,y);
if(i==0)
cprintf("Å");
else
cprintf("´");
}
}
textcolor(10+BLINK);
for(i=-300;i<=300;i=i+30)
{
s=i;
j=sin(s/180*M_PI);
if(j==0.5)
j=2;
else if(j==1)
j=4;
else if(j>=0.86 && j<=0.87)
j=3;
else if(j==-0.5)
j=-2;
else if(j==-1)
j=-4;
else if(j<=-0.86 && j>=-0.87)
j=-3;
else
j=0;
y=12-j;
x=41+i/10;
gotoxy(x,y);
cprintf("þ");
delay(200);
}
getch();
}
CODING
#include<all.h>
void main()
{
int x,y,A,i,B,C;
float j,s;
first();
second();
first();
clrscr();
for(i=-33,x=7,y=12;i<=33;x=x+3,i=i+3)
{
if(i==-33)
{
gotoxy(x+2,y);
cprintf("®");
}
else if(i==33)
{
gotoxy(x,y);
cprintf("¯");
}
else
{
gotoxy(x,y);
cprintf("ÄÂÄ");
gotoxy(x,y+1);
if(i==0);
cprintf("%d",i);
}
}
for(i=5,x=39,y=7;i>=-5;i--,y++)
{
gotoxy(x,y);
if(i==-5)
cprintf(" ");
else if(i==5)
cprintf(" ");
else
{
if(i==0)
cprintf("");
else if(i==1)
cprintf("\b\b0.25");
else if(i==-1)
cprintf("\b\b\b-0.25");
else if(i==2)
cprintf("\b0.5");
else if(i==-2)
cprintf("\b\b-0.5");
else if(i==3)
cprintf("\b\b0.86");
else if(i==-3)
cprintf("\b\b\b-0.86");
else if(i==4)
cprintf(" 1");
else if(i==-4)
cprintf("-1");
gotoxy(x+2,y);
if(i==0)
cprintf("Å");
else
cprintf("´");
}
}
textcolor(10+BLINK);
for(i=-300;i<=300;i=i+30)
{
s=i;
j=sin(s/180*M_PI);
if(j==0.5)
j=2;
else if(j==1)
j=4;
else if(j>=0.86 && j<=0.87)
j=3;
else if(j==-0.5)
j=-2;
else if(j==-1)
j=-4;
else if(j<=-0.86 && j>=-0.87)
j=-3;
else
j=0;
y=12-j;
x=41+i/10;
gotoxy(x,y);
cprintf("þ");
delay(200);
}
getch();
}
===========================================================================
No comments:
Post a Comment