# Diamond Solid

/
/How to make an outline of a diamond in C?

I'm trying to figure out how to create a pattern of asterisks with a diamond in C, C + +, use loops and if statements. There is a solid diamond, only the outline. If anyone can help would be greatly appreciated! Thank you.

You can use loop requires three cycles of one to enter other spaces and asterisks to write once you have the first triangle can be changed slightly the account code back instead of up / * Program to draw a rhombus asterisks * / # include # Include int main () (int i, int j, int z = 1; spaces int, int g = 4, / * top, diamond * / for (i = 1, i <= 5; i + +) (for (space = g; spaces> = 1; spaces -) (printf ( "")) For (j = 1, j <= z, j + +) (("*");) printf printf ( "\ n"); z + = 2, g -;) / * The diamond is reflected * / for (i = 0, i <= 5; i + +) (for (space = g; spaces> = 1; spaces -) (printf ("");) for (j = 1, j <= z, j + +) (("*");) printf printf ( "\ n"); z-= 2; g + +;) getch (); return 0;)

/
/Rhino 3D – Create a Diamond Solid
/
//
/ /
/[affmage source=”ebay” results=”25″]Diamond Solid[/affmage]/
/[affmage source=”amazon” results=”8″]Diamond Solid[/affmage]/
/[affmage source=”clickbank” results=”4″]Diamond Solid[/affmage]/
/