C,C++, coding..

Fish pattern program

Fish Pattern

#include<stdio.h>

int main()

{

 

int x,y,t;

for(t=0;t<50;t++)

{

for(y=7;y>-8;y–)

{

for(x=-7;x<=10;x++)

{

if(y==7)

{

if((x+t)%2!=0)

printf(“–“);

else

printf(“~~”);

}

else if(y==-7)

printf(“__”);

else if(y==6)

{

if(10-(t%11)*2==x)

printf(“#₹”);

else

printf(” “);

}

else if(y==-6)

{

if(12-t%18==x)

printf(“=>”);

else

printf(” “);

}

else if(x==0 && y==-2)

{

if(t%2==1)

printf(“✓✓”);

else

printf(“√√”);

}

else if(((x-y==-5 || x+y==-5) && x<0) || (x==-7 && abs(y)<3) || (x==0 && abs(y)==4))

printf(“* “);

else if(x==0 && y==2)

{

if(t%5==4)

printf(“× “);

else

printf(“@ “);

}

else if(x>0 && (t%5==0 || t%5==1 || t%5==4))

{

if(((x+y==5 || x-y==5) && x<6) || (y==0 && x<6 && x>1))

{

if(y==0 && x==2)

printf(” =”);

else if(y==0 && x!=5)

printf(“==”);

else

printf(“* “);

}

else if(x==9 && y==0 && t%5==1)

printf(“##”);

else

printf(” “);

}

else if(x>0)

{

if(x-abs(y)==1 && x<4)

printf(“* “);

else if((x+y==5 || x-y==5) && x<4)

printf(“* “);

else if(x==3 && y==0 && t%5==3)

printf(“##”);

else if(x==6 && y==0 && t%5==2)

printf(“##”);

else

printf(” “);

}

    else

        printf(” “);

}

printf(“\n”);

}

}

return 0;

}

 

 

 


 

Topics Covered :

  • c program
  • c programming language
  • coding tutorials
  • computer
  • Fish pattern
  •  Fish pattern using C
  • how to print pattern program in c


 

Thanks for reading this blog. Hope you get satisfied with the blog and definitely this blog must have valued your time and effort of reading.

Take a time to connect our other digital creations such as Instagram , Facebook and Youtube.

 

🧑‍💻🧑‍💻 Social Media Links of Tech DCode :

👉🏻 YouTube : https://www.youtube.com/channel/UCjJnEdeugftBwQ3yMuD4B_A
👉🏻 Instagram : https://www.instagram.com/thetechdcode/
👉🏻 Facebook Page : https://www.facebook.com/thetechdcode
👉🏻 Twitter : https://twitter.com/thetechdcode
👉🏻 Telegram Channel : https://t.me/thetechdcode
👉🏻 Tech DCode Linktree : https://linktr.ee/thetechdcode
👉🏻 My Personal Handles : https://linktr.ee/virtualshivamin

🧑‍💻🧑‍💻 Social Media Links of SHIVAM SINGH (OWNER) :

👉🏻 Instagram : https://www.instagram.com/virtualshivamin/
👉🏻 Facebook Page : https://www.facebook.com/virtualshivamin/
👉🏻 Twitter : https://twitter.com/virtualshivamin/
👉🏻 Personal Linktree : https://linktr.ee/virtualshivamin 

 

Leave a Reply

Your email address will not be published. Required fields are marked *