#include <stdio.h>
void
printHappyPattern() {
const
char
* happyPattern[] = {
"H H AAAAA PPPP PPPP Y Y",
"H H A A P P P P Y Y ",
"HHHHH AAAAA PPPP PPPP Y ",
"H H A A P P Y ",
"H H A A P P Y "
};
for
(
int
i = 0; i < 5; i++) {
printf
("%s\n", happyPattern[i]);
}
}
void
printNewPattern() {
const
char
* newPattern[] = {
"N N EEEEE W W",
"NN N E W W",
"N N N EEEE W W W",
"N NN E W W W",
"N N EEEEE W W"
};
for
(
int
i = 0; i < 5; i++) {
printf
("%s\n", newPattern[i]);
}
}
void
printYearPattern() {
const
char
* yearPattern[] = {
"Y Y EEEEE AAAAA RRRR ",
" Y Y E A A R R",
" Y EEEE AAAAA RRRR ",
" Y E A A R R ",
" Y EEEEE A A R RR"
};
for
(
int
i = 0; i < 5; i++) {
printf
("%s\n", yearPattern[i]);
}
}
void
print2024Pattern() {
const
char
* pattern2024[] = {
" 222 000 222 44 ",
" 2 2 0 0 2 2 4 4",
" 2 0 0 2 44444",
" 2 0 0 2 4",
" 2222 000 2222 4"
};
for
(
int
i = 0; i < 5; i++) {
printf
("%s\n", pattern2024[i]);
}
}
int
main() {
printHappyPattern();
printf
("\n");
printNewPattern();
printf
("\n");
printYearPattern();
printf
("\n");
print2024Pattern();
return
0;
}