silentkiler029

Happy Birthday To You (shortened) - Ariful Islam Shanto

Jun 5th, 2020
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 3.67 KB | None | 0 0
  1. /*  BISMILLAHIR-RAHMANIR-RAHIM
  2.  ____________________________________
  3. |                                    |
  4. |       SHANTO_SUST_SWE-19_029       |
  5. |____________________________________|
  6. */
  7.  
  8. #include <stdio.h>
  9. #include <string.h>
  10. #include <math.h>
  11. #include <stdlib.h>
  12. #include <time.h>
  13.  
  14. #define debug 1
  15.  
  16. int i; char ch = '@';
  17.  
  18. void printSpace() {i = 3; while(i--) printf(" ");}
  19.  
  20. void h1() {i = 2; while(i--) printf("%c", ch); i = 2; while(i--) printf(" "); i = 2; while(i--) printf("%c", ch); printSpace();}
  21. void h2() {h1();}
  22. void h3() {i = 6; while(i--) printf("%c", ch); printSpace();}
  23. void h4() {h3();}
  24. void h5() {h1();}
  25. void h6() {h1();}
  26. void a1() {printf(" "); i = 4; while(i--) printf("%c", ch); printf(" "); printSpace();}
  27. void a2() {i = 2; while(i--) printf("%c", ch); printf("  "); i = 2; while(i--) printf("%c", ch); printSpace();}
  28. void a3() {a2();}
  29. void a4() {h3();}
  30. void a5() {a2();}
  31. void a6() {a2();}
  32. void p1() {a1();}
  33. void p2() {h1();}
  34. void p3() {h1();}
  35. void p4() {i = 5; while(i--) printf("%c", ch); printf(" "); printSpace();}
  36. void p5() {i = 2; while(i--) printf("%c", ch); i = 4; while(i--) printf(" "); printSpace();}
  37. void p6() {p5();}
  38. void Y1() {h1();}
  39. void y2() {h1();}
  40. void y3() {h1();}
  41. void y4() {printf(" "); i = 4; while(i--) printf("%c", ch); printf(" "); printSpace();}
  42. void y5() {printf("  "); i = 2; while(i--) printf("%c", ch); printf("  "); printSpace();}
  43. void y6() {y5();}
  44. void b1() {i = 5; while(i--) printf("%c", ch); printf(" "); printSpace();}
  45. void b2() {h1();}
  46. void b3() {p4();}
  47. void b4() {p4();}
  48. void b5() {h1();}
  49. void b6() {b1();}
  50. void i1() {h3();}
  51. void i2() {y5();}
  52. void i3() {y5();}
  53. void i4() {y5();}
  54. void i5() {y5();}
  55. void i6() {h3();}
  56. void r1() {p4();}
  57. void r2() {h1();}
  58. void r3() {h3();}
  59. void r4() {i = 4; while(i--) printf("%c", ch); printf("  "); printSpace();}
  60. void r5() {i = 2; while(i--) printf("%c", ch); printf(" "); i = 2; while(i--) printf("%c", ch); printf(" "); printSpace();}
  61. void r6() {h1();}
  62. void t1() {h3();}
  63. void t2() {y5();}
  64. void t3() {y5();}
  65. void t4() {y5();}
  66. void t5() {y5();}
  67. void t6() {y5();}
  68. void d1() {p4();}
  69. void d2() {h1();}
  70. void d3() {h1();}
  71. void d4() {h1();}
  72. void d5() {h1();}
  73. void d6() {p4();}
  74. void o1() {a1();}
  75. void o2() {h1();}
  76. void o3() {h1();}
  77. void o4() {h1();}
  78. void o5() {h1();}
  79. void o6() {a1();}
  80. void u1() {h1();}
  81. void u2() {h1();}
  82. void u3() {h1();}
  83. void u4() {h1();}
  84. void u5() {h1();}
  85. void u6() {a1();}
  86.  
  87. void HAPPY()
  88. {
  89.     h1();a1();p1();p1();Y1();printf("\n");
  90.     h2();a2();p2();p2();y2();printf("\n");
  91.     h3();a3();p3();p3();y3();printf("\n");
  92.     h4();a4();p4();p4();y4();printf("\n");
  93.     h5();a5();p5();p5();y5();printf("\n");
  94.     h6();a6();p6();p6();y6();printf("\n");
  95. }
  96. void BIRTHDAY()
  97. {
  98.     b1();i1();r1();t1();h1();d1();a1();Y1();printf("\n");
  99.     b2();i2();r2();t2();h2();d2();a2();y2();printf("\n");
  100.     b3();i3();r3();t3();h3();d3();a3();y3();printf("\n");
  101.     b4();i4();r4();t4();h4();d4();a4();y4();printf("\n");
  102.     b5();i5();r5();t5();h5();d5();a5();y5();printf("\n");
  103.     b6();i6();r6();t6();h6();d6();a6();y6();printf("\n");
  104. }
  105. void TO_YOU()
  106. {
  107.     t1();o1(); i = 9; while(i--) printf(" "); Y1();o1();u1();printf("\n");
  108.     t2();o2(); i = 9; while(i--) printf(" "); y2();o2();u2();printf("\n");
  109.     t3();o3(); i = 9; while(i--) printf(" "); y3();o3();u3();printf("\n");
  110.     t4();o4(); i = 9; while(i--) printf(" "); y4();o4();u4();printf("\n");
  111.     t5();o5(); i = 9; while(i--) printf(" "); y5();o5();u5();printf("\n");
  112.     t6();o6(); i = 9; while(i--) printf(" "); y6();o6();u6();printf("\n");
  113. }
  114.  
  115. int main()
  116. {
  117.     HAPPY();    printf("\n\n");
  118.     BIRTHDAY(); printf("\n\n");
  119.     TO_YOU();   printf("\n\n");
  120.  
  121.     return 0;
  122. }
  123. //ALHAMDULILLAH
Advertisement
Add Comment
Please, Sign In to add comment