Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» NewBlueFx TotalFX Windows-FL | 1.11 GB
Tue Dec 17, 2013 12:42 pm by titquarra

» NewBlueFx TotalFX Windows-FL | 1.11 GB
Tue Dec 17, 2013 12:42 pm by titquarra

» Celebrity.Sex.Tape.UNCUT.&.UNRATED.2012.720p.BRrip.x264.YIFY.mp4
Tue Dec 17, 2013 8:32 am by titquarra

» Maya Autodesk Personal Learning Edition 8.5
Tue Dec 17, 2013 7:47 am by titquarra

» Tuyệt Kỹ Đong Giai Chân Kinh (tuyệt Kỹ cua trai)
Thu Aug 23, 2012 5:38 am by Admin

» Tuyệt kỹ cua giai
Thu Aug 23, 2012 5:36 am by Admin

» NETCAT.........
Mon Aug 13, 2012 6:35 am by Admin

» Bảo mật CSDL bằng phương pháp mã hóa.
Tue Apr 17, 2012 10:04 pm by Admin

» Hàm mã hóa MD5 bằng JavaScript
Tue Apr 17, 2012 10:03 pm by Admin

Shopmotion


Affiliates
free forum


Code Ve Trai Tim

View previous topic View next topic Go down

Code Ve Trai Tim

Post  Admin on Thu Jun 09, 2011 2:55 am

#include <stdio.h>
#include <conio.h>
#include <math.h>
#include <dos.h>
#include <string.h>
long i=2, j, huong=1;
void traiTim(){

gotoxy(15,0+j%30);
printf(" N-------B ");
gotoxy(15,1+j%30);
printf(" ***** ***** NB\n");
gotoxy(15,2+j%30);
printf(" ********* ********* \n");
gotoxy(15,3+j%30);
printf(" *********** *********** \n");
gotoxy(15,4+j%30);
printf(" ************ ************ I\n");
gotoxy(15,5+j%30);
printf(" ************************* \n");
gotoxy(15,6+j%30);
printf(" *********************** L\n");
gotoxy(15,7+j%30);
printf(" ******************** O\n");
gotoxy(15,8+j%30);
printf(" ***************** V\n");
gotoxy(15,9+j%30);
printf(" ************* E\n");
gotoxy(15,10+j%30);
printf(" ********* \n");
gotoxy(15,11+j%30);
printf(" ***** Y\n");
gotoxy(15,12+j%30);
printf(" *** O\n");
gotoxy(15,13+j%30);
printf(" * U\n");

}


void main()
{
do
{
if(i%30==1) huong=pow(-1,(i-1)/30);
if(huong==-1) j=30-i%30+2;
else j=i;
if((i%2))
{
textcolor(4);
traiTim();

}
if((i%3==0)&&(i%2!=0))
{
clrscr();
textcolor(10);
traiTim();
}
if((i%7==0)&&(i%2!=0)&&(i%3!=0))
{
clrscr();
textcolor(3);
traiTim();
}
if((i%5==0)&&(i%2!=0)&&(i%3!=0)&&(i%7!=0))
{
clrscr();
textcolor(7);
traiTim();

}
else
{
clrscr();
textcolor(1);
traiTim();
}

delay(500);
i++;
}while(!kbhit());
getch();
}

Admin
Admin

Tổng số bài gửi : 782
Join date : 2009-08-15

View user profile http://hackis.forumotion.com

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum