problem with geometric forms

hello ..i need to show that on the screen. and use 5 punctions
Menu of possible shapes:
1] Isosceles triangle
5] Trapezoid
3] Parallelogram
Please enter your choice: <3>
Please enter the height: <7>
Please enter the width: <4>
The shape is:
#
# #
# # #
# # # #
# # # #
# # # #
# # # #
# # #
# #
#
functions:
void rectangle (int height, int width)
void right_angle_triangle (int length, int direction)
void isosceles_triangle (int length)
void trapezoid (int height, int width)
void parallelogram (int height, int width)

...
what must be my void main for that programm?
thanks
your main is int

your functions are void, since you only have output but no return values.

just use std::cout and the std::endl and # in a way it forms the shapes

example for rect:

1
2
3
std::cout << "###" << std::endl;
std::cout << "###" << std::endl;
std::cout << "###" << std::endl;
Topic archived. No new replies allowed.