C
c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Heart pattern by @HungryTradie
// v1.0 2022.01.26
// v1.1 2023.01.27 background print character
/** Aim: a heart pattern made from asterisks, 19 wide, 13 high */
/** input choice of display (1, 2, 3, 4) */
#include <stdio.h>
#define AL 13 // Array Lines
int pattern(int ,int *,char *);
int main() {
int choice=3; // choice can be 1, 2 or 3
scanf("%d",&choice);
int *ptr=NULL;
char *icons=NULL;
/** //// the array values */
// choice 1
int tree[4][AL]={
{ 9, 8, 7, 8, 6, 4, 5, 4, 2, 1, 7, 7, 10},
{ 1, 3, 5, 3, 7,11, 9,11,15,17, 5, 5, 0},
{ 9, 8, 7, 8, 6, 4, 5, 4, 2, 1, 7, 7, 9},
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}};
char tree_char[3][AL]={
{"❄️"},
{"🎄"},
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run