Saturday, January 4, 2014

C Program for print I Love You

C Program for print I Love You 

Output



Code

#include<stdio.h>
#include<conio.h>
#include<dos.h>
void main()
{
int m,i,j=10,k=3;
clrscr();
for(i=0;i<=13;i++)
  {
  gotoxy(j,k);
    textcolor(WHITE+BLINK);
    textbackground(5);
    cprintf("IIII");
  delay(50);
  j++;
  }
  for(i=0;i<=6;i++)
  {
  gotoxy(j,k);
    cprintf("IIII");
  textcolor(WHITE+BLINK);
  textbackground(5);
  delay(50);
  j--;
  }
  for(i=0;i<=6;i++)
  {
  gotoxy(j,k);
    cprintf("IIII");
  textcolor(WHITE+BLINK);
 textbackground(5);
  delay(50);
  k++;
  }
  for(i=0;i<=6;i++)
  {
  gotoxy(j,k);
    cprintf("IIII");
  textcolor(WHITE+BLINK);
 textbackground(5);
  delay(50);
  j--;
  }
  for(i=0;i<=13;i++)
  {
  gotoxy(j,k);
    cprintf("IIII");
  textcolor(WHITE+BLINK);
 textbackground(5);
  delay(50);
  j++;
  }
  j=32,k=7;
  for(i=0;i<=4;i++)
  {
  gotoxy(j,k);
  textcolor(WHITE+YELLOW+BLINK);
  textbackground(0);
  cprintf("LLL");
  delay(50);
  j++;
  }
      for(i=0;i<=2;i++)
  {
  gotoxy(j,k);
    cprintf("LLL");
  textcolor(WHITE+YELLOW+BLINK);
  textbackground(0);
  delay(50);
  j++;
  k++;
  }
    for(i=0;i<=2;i++)
  {
  gotoxy(j,k);
    cprintf("LLL");
  textcolor(WHITE+YELLOW+BLINK);
  textbackground(0);
  delay(50);
  j++;
  k--;
  }
    for(i=0;i<=4;i++)
  {
  gotoxy(j,k);
    cprintf("LLL");
  textcolor(WHITE+YELLOW+BLINK);
  textbackground(0);
  delay(50);
  j++;
  }
    for(i=0;i<=2;i++)
  {
  gotoxy(j,k);
    cprintf("LLL");
     textcolor(WHITE+YELLOW+BLINK);
  textbackground(0);
  delay(50);
  j++;
  k++;
  }
    for(i=0;i<=0;i++)
  {
  gotoxy(j,k);
    cprintf("LLL");
  textcolor(WHITE+YELLOW+BLINK);
  textbackground(0);
  delay(50);
  k++;
  }
    for(i=0;i<=7;i++)
  {
  gotoxy(j,k);
    cprintf("LLL");
  textcolor(WHITE+YELLOW+BLINK);
  textbackground(0);
  delay(50);
  j--;
  k++;
  }
    for(i=0;i<=5;i++)
  {
  gotoxy(j,k);
    cprintf("LLL");
  textcolor(WHITE+YELLOW+BLINK);
  textbackground(0);
  delay(50);
  j--;
  }
    for(i=0;i<=7;i++)
  {
  gotoxy(j,k);
    cprintf("LLL");
  textcolor(WHITE+YELLOW+BLINK);
  textbackground(0);
  delay(50);
  j--;
  k--;
  }
    for(i=0;i<=0;i++)
  {
  gotoxy(j,k);
    cprintf("LLL");
  textcolor(WHITE+YELLOW+BLINK);
  textbackground(0);
  delay(50);
  k--;
  }
    for(i=0;i<=3;i++)
  {
  gotoxy(j,k);
    cprintf("LLL");
  textcolor(WHITE+YELLOW+BLINK);
  textbackground(0);
  delay(50);
  j++;
  k--;
  }
  j=50,k=5;
    for(i=0;i<=17;i++)
  {
  gotoxy(j,k);
    cprintf("LLLL");
  textcolor(WHITE+YELLOW+BLINK);
  textbackground(0);
  delay(50);
  j--;
  k++;
  }
  j=55,k=15;
    for(i=0;i<=4;i++)
  {
  gotoxy(j,k);
   textcolor(YELLOW+BLINK);
   textbackground(0);
   cprintf("UUU");
  delay(50);
  k++;
  }
    for(i=0;i<=2;i++)
  {
  gotoxy(j,k);
    cprintf("UUU");
     textcolor(YELLOW+BLINK);
 textbackground(0);
  delay(50);
  j++;
  k++;
  }
    for(i=0;i<=6;i++)
  {
  gotoxy(j,k);
    cprintf("UUU");
     textcolor(YELLOW+BLINK);
 textbackground(0);
  delay(50);
  j++;
  }
    for(i=0;i<=2;i++)
  {
  gotoxy(j,k);
    cprintf("UUU");
     textcolor(YELLOW+BLINK);
 textbackground(0);
  delay(50);
  j++;
  k--;
  }
    for(i=0;i<=5;i++)
  {
  gotoxy(j,k);
    cprintf("UUU");
     textcolor(YELLOW+BLINK);
  textbackground(0);
  delay(50);
  k--;
  }
  j=1,k=1;
    for(i=0;i<=78;i++)
  {
  gotoxy(j,k);
    cprintf(" ");
  textcolor(3);
  textbackground(0);
  delay(50);
  j++;
  }



    for(i=0;i<=45/2;i++)
  {
  gotoxy(j,k);
  cprintf(" ");
  textcolor(3);
  textbackground(0);
  delay(20);
  k++;
  }
    for(i=0;i<=77;i++)
  {
  gotoxy(j,k);
    cprintf(" ");
  textcolor(3);
textbackground(0);
  delay(20);
  j--;
  }
    for(i=0;i<=23;i++)
  {
  gotoxy(j,k);
    cprintf(" ");
  textcolor(3);
  textbackground(0);
  delay(20);
  k--;
  }
  j=9;k=13;
for(m=10;m<15;m++)
{
 j++;
 textcolor(m);
   for(i=0;i<4;i++)
  {
  gotoxy(j,k);
    cprintf("ILU");
 k++;  delay(20);
  j--;
  k++;
  }
     for(i=0;i<4;i++)
  {
  gotoxy(j,k);
    cprintf("ILU");
  delay(20);
  j++;
  k++;
  }
      for(i=0;i<4;i++)
  {
  gotoxy(j,k);
    cprintf("ILU");
  delay(20);
  j++;
  k--;
  }
    for(i=0;i<4;i++)
  {
  gotoxy(j,k);
    cprintf("ILU");
  delay(20);
  j--;
  k--;
  }
  }
   j=60;k=3;
for(m=10;m<15;m++)
{
 textcolor(m);
 j++;
   for(i=0;i<4;i++)
  {
  gotoxy(j,k);
    cprintf("ILU");
  delay(20);
  j--;
  k++;
  }
     for(i=0;i<4;i++)
  {
  gotoxy(j,k);
    cprintf("ILU");
  delay(20);
  j++;
  k++;
  }
      for(i=0;i<4;i++)
  {
  gotoxy(j,k);
    cprintf("ILU");
  delay(20);
  j++;
  k--;
  }
    for(i=0;i<4;i++)
  {
  gotoxy(j,k);
    cprintf("ILU");
  delay(20);
  j--;
  k--;
}
  }
  j=20;k=25;
  gotoxy(j,k);
    textcolor(WHITE);
    textbackground(0);
  cprintf("for more program visit Now : gauravsiwach.blogspot.in");
  getch();
  }




4 comments:

  1. hey bud i copied ur program and run it in my lap but its showing error .. can u pls help me out

    ReplyDelete
    Replies
    1. hey @naveen wht kind of error r u getting???

      Delete
  2. blink , yellow not declared ? ...i m getting this ..

    ReplyDelete