Sunday, 21 January 2018

Program for Heart Symbol


#include<stdio.h>
#include<conio.h>
main()
{
int i,j;
clrscr();
gotoxy(33,9);
printf("  %c%c%c       %c%c%c\n",3,3,3,3,3,3);
gotoxy(32,10);
printf(" %c     %c   %c     %c\n",3,3,3,3);
gotoxy(32,11);
printf(" %c       %c       %c\n",3,3,3);
j=11;
for(i=33;i<=40;i++)
{
gotoxy(i,j);
printf("%c",3);
j++;
}
j=19;
for(i=41;i<=48;i++)
{
gotoxy(i,j);
printf("%c",3);
j--;
}
getch();
}


0 comments:

Post a Comment