I am having difficulty understanding functions and how to write a program using one. Foe example, I need to write a program that takes a number from the user and prints a diamond.
I need to use functions to tell the program hoe many spaces to print and how many * to print. Can any one hellp me please?
Thanks