Thread: creating new lines with 1 printf

  1. #1
    Registered User
    Join Date
    Sep 2009
    Posts
    11

    creating new lines with 1 printf

    i need to create multiple lines of text in a shell while using only 1 printf command in notepad but the printf must be on multiple lines in notepad, if you dont understand what i mean, i did some paint pictures to accurately describe what i mean, which i can email. My project is due in 3 hours and i spent like 9 hours yesterday trying to figure this out

    thank you

  2. #2
    Hurry Slowly vart's Avatar
    Join Date
    Oct 2006
    Location
    Rishon LeZion, Israel
    Posts
    6,788
    Code:
    printf(
        "\n"
        "\n"
        "\n"
        "\n"
        "\n"
        "\n"
        "\n"
    );
    All problems in computer science can be solved by another level of indirection,
    except for the problem of too many layers of indirection.
    – David J. Wheeler

  3. #3
    Registered User
    Join Date
    Sep 2009
    Posts
    11
    Oh thank you so much!!!!!! Yay!!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problems reading entered race times C
    By loopymoo26 in forum C Programming
    Replies: 12
    Last Post: 05-23-2009, 07:38 AM
  2. Replies: 2
    Last Post: 03-05-2009, 10:25 AM
  3. Double to Int conversion warning
    By wiznant in forum C Programming
    Replies: 15
    Last Post: 09-19-2005, 09:25 PM
  4. Please help debug
    By Wexy in forum C Programming
    Replies: 2
    Last Post: 11-11-2002, 12:40 AM
  5. help with switch statements
    By Wexy in forum C Programming
    Replies: 3
    Last Post: 11-06-2002, 05:44 PM