Thread: for loop

  1. #1
    Registered User
    Join Date
    Feb 2002
    Posts
    1

    for loop

    write a programthat print the diomond shape.you may use output ststement that print eithera single asterick(*) or a single blank.using nested for structures..
    please help me...this is my college assignment.

  2. #2
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  3. #3
    Registered User
    Join Date
    Jan 2002
    Posts
    559
    No one's going to write the program for you. Read the Deitel book. Use the nested for loops.
    Here's a clue. In some loop(s) you increment, other(s) decrement.

Popular pages Recent additions subscribe to a feed
Website Security Test