Print Friendly and PDF


Program

#include<stdio.h>
#include<conio.h>
#include<iostream>
int main ()
{
int i,j,k,m;
for(i=1;i<=20;i++)
{
if(i<9&&i>=2)
{
for(k=1;k<=50;k++)
{
if(((i>=5)&&(k==17||k==20||k==23)||(i==8)&&(k>=17&&k<=23))||((i<=3)&&(k==20)))
printf("\3");
else
printf(" ");
}
}
if(i>=10)
{
for (j=1;j<=20;j++)
{
if((j<5&&i==14)||(j==2&&i==13)||(j==3&&i==12)||(j==4&&i==11))
{
printf("\3");
}
else
printf(" ");
if(((i==20&&j<=15&&j>=5))|| j==5 || j==10 || j==15 || j==20 )
printf("\3");
else 
printf(" ");
}
}
printf("\n");
}
printf("\n\n\3\3\3\3\3\3\3\3\3\3\3 --------- \3\3\3\3\3\3\3\3\n");
printf("\tprogramming passion\n");
getch();
return 0;
}
zubairsaif

Zubair saif

A passionate writer who loves to write on new technology and programming

Post A Comment:

0 comments: