C PROGRAM TO PRINT YOUR NAME INSIDE A BEATING STAR HEART

C PROGRAM TO PRINT YOUR NAME INSIDE A BEATING STAR HEART




C PROGRAM TO PRINT YOUR NAME INSIDE A BEATING STAR HEART

CODE :

#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
#include <time.h>

char name[15];

void main()
{
   int i;
   clrscr();
   textcolor(RED);
   printf("Enter his/her name: ");
   scanf("%s",&name);
   heart();
   for(i=0; i<10; i++)
   {
      clrscr();
      delay(300);
      beat();
      delay(300);
   }
   getch();
}



l(int start, int stop, int y)
{
   int x;
   for(x=start;x<=stop;x++)
   {
   gotoxy(x,y);
   cprintf("*");
   }
   delay(100);
}


heart()
{
   int x;
   l(40,40,24);
   l(39,41,23);
   l(38,42,22);
   l(36,44,21);
   l(34,46,20);
   l(31,49,19);
   l(29,51,18);
   l(28,52,17);
   l(28,52,16);
   l(29,51,15);
   l(29,51,14);
   l(31,39,13);   l(41,49,13);
   l(33,37,12);   l(43,47,12);
}


l2(int start, int stop, int y)
{
   int x;
   for(x=start;x<=stop;x++)
   {
   gotoxy(x,y);
   cprintf("*");
   }
}

beat()
{
   int x;
   textcolor(RED);
   l2(40,40,24);
   l2(39,41,23);
   l2(38,42,22);
   l2(36,44,21);
   l2(34,46,20);
   l2(31,49,19);
   l2(29,51,18);
   l2(28,52,17);
   l2(28,52,16);
   l2(29,51,15);
   l2(29,51,14);
   l2(31,39,13);   l2(41,49,13);
   l2(33,37,12);   l2(43,47,12);
   gotoxy(37,18);
   textcolor(GREEN);
   cprintf("%s",name);
}




Tag 



program to print your name inside a beating star heart, c program to print your name inside a beating star heartbreaker, c program to print your name inside a beating star heart symbol, c program to print your name inside a beating star heart and, c program to print your name inside a beating star heart and vascularc programming, c programming magic, boyfriend, geeky, gf, geek, print, heart shape, name, print star, beating, prefix, star pattern, printing star, #starpattern, c++, red, c programming star, bf, c program, heart, print love shape by c programmming, pattern, in c, program, techno, impress, printing stars in heart shape by c program, c language, girlfriend, print love shape, love print, bae, #code, magic, #cprpgramming





Post a Comment

0 Comments