Animasi Kata
kode :
#include<stdio.h>
#include<conio.h>
#include<string.h>
#include<dos.h>
main()
{
int i,j; char kata [10];
clrscr();
printf("Input Kata : ");
scanf("%s",&kata);
for (i=1;i<=55-(strlen(kata));i++)
{
clrscr();
gotoxy(1,i);
textcolor(i);
printf("%s",kata);
delay(100);
}
for (i=1;i<=75-(strlen(kata));i++)
{
clrscr();
gotoxy(i,50);
textcolor(i);
printf("%s",kata);
delay(100);
}
for (i=50;i<=1-(strlen(kata));i--)
{
clrscr();
gotoxy(75,i);
textcolor(i);
printf("%s",kata);
delay (100);
}
for (i=75;i>=5-(strlen(kata));i--)
{
clrscr();
gotoxy(i,1);
textcolor(i);
printf("%s",kata);
delay (100);
}
getch();
return 0;
}
0 comments:
:)) :)] ;)) ;;) :D ;) :p :(( :) :( :X =(( :-o :-/ :-* :| 8-} ~x( :-t b-( :-L x( =))
Post a Comment