how can i print this shape in c :
x=2;
+---+
:XX :
:X 0:
: 00:
+---+
x=3;
+----+
:XXX :
:XX 0:
:X 00:
: 000:
+----+
using loops and function only.
please help , cant figure it out for days .
how can i print this shape in c :
x=2;
+---+
:XX :
:X 0:
: 00:
+---+
x=3;
+----+
:XXX :
:XX 0:
:X 00:
: 000:
+----+
using loops and function only.
please help , cant figure it out for days .
Post your best effort after "days of effort".
We're not just going to give you an answer simply on your word that you "tried".
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.