void diamond(int n); // where n is the number of stars in the middle row. You can assume that n is odd.
(You can change the prototype of the function diamond)
usmanjani -3 Light Poster
Suzie999 245 Coding Hobbyist
usmanjani -3 Light Poster
rproffitt 2,693 https://5calls.org Moderator
usmanjani -3 Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.