Thread: parallelogram for statement issues

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Sep 2007
    Posts
    16

    parallelogram for statement issues

    Ok so here the problem i just got into a beginning programming C class and my teacher kind of sucks and i would love some help....

    basically im writing a program that writes a parallelogram with a input of a width and a length...

    so basically if you want the length to be 5 and you want the width to be 4 the output would look like this

    Code:
    *****
      *****
        *****
          *****
    (each row moves over to the right about 2 spaces everytime it goes to the next line)

    pretty simple im assuming... i pretty much understand everything on how to do everything but the for statement part or the while statement im currently trying to use the for statement because i think it is easiest to read... but for the life of me i cant get it to compile and after i input my 2 numbers print anything near to the right thing... if anyone could help me with the basic set up and a brief explanations i would absolutely love it... thanks so much

    surfingbum18
    Last edited by surfingbum18; 09-25-2007 at 12:34 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Debugging Issues
    By jl864405 in forum C Programming
    Replies: 6
    Last Post: 06-05-2009, 05:40 PM
  2. issues
    By OrAnGeWorX in forum C Programming
    Replies: 35
    Last Post: 11-19-2008, 12:18 AM
  3. Bitmap scroll issues
    By Gerread in forum Windows Programming
    Replies: 4
    Last Post: 05-14-2007, 05:18 AM
  4. Solution to culling issues?
    By VirtualAce in forum Game Programming
    Replies: 4
    Last Post: 03-14-2006, 06:59 PM
  5. hexdump issues
    By daluu in forum C Programming
    Replies: 2
    Last Post: 03-04-2003, 09:01 PM