+4

What is the error in this program to be diamond pattern

Please explain it https://code.sololearn.com/cQjogMIXsmWB/?ref=app

2 Answers

New Answer

+5

Add this after line 24 - printf("\n");

+4