Saturday 1 March 2014

SPECIAL PATTERNS MADE BY ADNAN SHAHID





PAKISTAN FLAG   PATTERNS:::

CODING::::::::::
#include<stdio.h>
main()
{
int i,j,k,s=25;
system("color e");
printf("\n\n\n\n\n\n");
printf("\n\n\n\t\t*************************************************");
printf("\n\t\t***          ->MADE BY ADNAN SHAHID<-         ***");
printf("\n\t\t*************************************************");
sleep(3000);
system("cls");
system("color E");
system("color 20");
for(i=1;i<=25;i++)
{
system("color e");
system("color f");
for(j=1;j<=s;j++)
{
system("color a");
system("color b");
if(j<=7&&i<=7||j==s&&i<=8||i>=23&&i<=24&&j==11||j==1&&i<=18&&i>=8||i>=20&&i<=21&&j==5)
printf("|");
else
if(i==8)
printf("-");
else
if(i==4 && j==15)
printf("<");
else
if(i==4&&j==16)
printf("*");
else
if(i==19 && j<=5||i==22 && j>=6 && j<=10||i==25 && j<=12)
printf("_");
else
printf(" ");
}
printf("\n");
}
getch();
}


STAR PATTERNS::::::::::::::::::::
                                   

CODING STAR::::::::::::::::::::::::::::::::
#include<stdio.h>
main()
{
int i,j,a=28,b=28,x=2,y=54;
for(i=1;i<=37;i++)
{
system("color e");
system("color B");
for(j=1;j<=55;j++)
{
system("color d");
system("color a");
if(i<=30&&j==a||j==b||i>=11&&j==x||j==y&&i>=11||j%2==1&&i==28||i==10&&j%2==1)
printf("*");
else
printf(" ");
}
a--;
b++;
if(i>=11)
{
x++;
y--;
}
printf("\n");
}
getch();
}


CHARISTEMS TREE  
                                                                                                                                                            
CODING STAR::::::::::::::::::::::::::
#include<stdio.h>
main()
{
int i,j,c=30,a=30,f=0,b=0;
for(i=1;i<=26;i++)
{
system("color e");
system("color B");
for(j=1;j<=c;j++)
{
system("color d");
system("color a");
if(i<=18&&j>=a&&j<=c&&f==0||j==a&&i%2==1||j==c&&i%2==1||i==26&&j>=20&&j%2==1)
{
printf("*");
f=1;
b=0;
}
else
{
printf(" ");
b++;
if(b==3)
f=0;
}
}
if(i<=18)
{
c+=2;
a-=2;
}
if(i==4||i==10)
{
c=30;
a=30;
}
else if(i==18)
{
c=31;
a=29;
}
else if(i==25)
c=40;
printf("\n");
}
getch();
}