heart pattern in c language

 code:
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
int main()
{
int row,col;
system("color 03"); // zero foe black and f for white
for(row=0;row<=2;row++)
{
 for(col=1;col<=17;col++)
 {
  if(col>=3-row&&col<=6+row||col>=12-row&&col<=15+row)
  printf("%c",1);
  else
  printf(" ");
 }
 printf("\n");
}
for(row=0;row<9;row++)
  {
   for(col=1;col<=17;col++)
   {
   if(col>=row+1&&col<=17-row)
   printf("%c",1);
   else
   printf(" ");
  }
  printf("\n");
  }
return 0;
}


MORE Topics:

1-How to print Numeric Number with a star pattern in c, https://youtu.be/qG3iE09BIwk 2-How to print Table with a star pattern in c, https://youtu.be/ALjlFK3CIwc 3-How to hack sim card, https://youtu.be/zseZl7_tmLI 4-How to print Heart with a star pattern in c, https://youtu.be/aAyaQ-52Ajk 5-How to print A alphabet pattern with Emoji and star pattern, https://youtu.be/Cyoz8VP6Rkw 6-Student database management in c language https://youtu.be/MbrVwFUD5Js 7-how to hack IP address | shutdown attack with IP address https://youtu.be/CINtkijYjrk 8-All Alphabet pattern in c | alphabet star pattern in c language in Hindi https://youtu.be/v5kqc7jG4OM 9- print Name with Alphabet Pattern in C in Hindi https://youtu.be/8r81E-Va7rQ 10-Free Contact List for SMS Marketing | Unlimited Numbers for Whatsapp https://youtu.be/z_mE2q_l0Pc

Popular posts from this blog

code of Alphabet K pattern

Happy New Year 2021 Wishes

5 Ways to Earn from LinkedIn