I wrote a c program for display a heart symbol at my childhood awesome days. 

I realize now that wonderful moment really nice feeling. Share to your friends and to proud as a programmer 

#include<stdio.h>
#include<conio.h>
int i,j,k,l;
void space(int a)
{
for(l=0;l< a;l++>
printf(" ");
}
void main()
{
printf("\n\n\n\n");
j=0;k=10;
for(i=5;i>=0;i--)
{
printf("\t\t\t");
space(i);
printf("*");
space(j);
printf("*");
space(k);
printf("*");
space(j);
printf("*\n");
j=j+2;
k=k-2;

}
j=22;
for(i=0;i< 2;i++)
{
printf("\t\t\t*");
space(22);
printf("*\n");
}
printf("\t\t>>>>@@@@@@@@@@@@@@@@");
space(11);
printf("@@@@@@@@@>>\n");
for(i=0;i<=11;i++)
{
printf("\t\t\t");
space(i);
printf("*");
if(i==2)
{
space(8);
printf("@");
space(9);
printf("*\n");
}
else if(i==5)
{
space(5);
printf("@");
space(6);
printf("*\n");
}
else
{
space(j);
printf("*\n");
}
j=j-2;
}
getch();

}

And its output is:



Post a Comment

Blogger