Create a function mx_cube
that prints a representation of a 3d cube to the standard output. The size of the cube depends on the variable n
which is passed to the function as a parameter.
Create a function mx_pyramid
that prints a representation of a 3d pyramid to the standard output.The size of the pyramid depends on the variable which is passed to the function as a parameter.
Problem Solving, Analysis, Agility & Adaptability, Self-Management, UNIX, Git, Procedural Programming, Algorithms, C, Communication.
- Complie as follow:
clang -std=c11 -Wall -Wextra -Werror -Wpedantic mx_cube.c main_cube.c mx_printchar.c -o mx_cube
clang -std=c11 -Wall -Wextra -Werror -Wpedantic mx_pyramid.c main_pyramid.c mx_printchar.c -o mx_pyramid