Thread: Print a square.

  1. #1
    Registered User
    Join Date
    Apr 2017

    Print a square.

    how can i print this shape in c :
    :XX :
    :X 0:
    : 00:
    :XXX :
    :XX 0:
    :X 00:
    : 000:
    using loops and function only.
    please help , cant figure it out for days .

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. help...draw a square within a square pattern
    By gzmiido in forum C++ Programming
    Replies: 6
    Last Post: 10-27-2013, 10:18 AM
  2. How to Draw a square within a square
    By gzmiido in forum C# Programming
    Replies: 2
    Last Post: 10-25-2013, 01:42 PM
  3. Replies: 15
    Last Post: 06-13-2012, 12:34 PM
  4. line-square and circle-square intersections
    By tomast in forum Game Programming
    Replies: 1
    Last Post: 11-16-2008, 08:12 AM
  5. for loops using square roots, square, Cube
    By lotf in forum C Programming
    Replies: 3
    Last Post: 03-21-2004, 04:29 AM

Tags for this Thread