HI .. newbie to the board... need some help plz

This is a discussion on HI .. newbie to the board... need some help plz within the C Programming forums, part of the General Programming Boards category; *panic*.. sorry i am having trouble with figuring out how to do this.... plz help -----* ----*** ---***** --******* -********* ...

  1. #1
    Registered User
    Join Date
    Apr 2002
    Posts
    2

    Question HI .. newbie to the board... need some help plz

    *panic*.. sorry i am having trouble with figuring out how to do this....

    plz help
    -----*
    ----***
    ---*****
    --*******
    -*********
    ***********

    i have to have this as output.. using a For loop... i am not good with doing these kinds of problems..

    could u point me like in the right direction so i could be able to do this... thanks a lot everyone ... thanks

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,484
    Have you got as far as this?

    *
    ***
    *****
    *******
    *********
    ***********

    Or even just outputting the number sequence 1,3,5,7,9

    Either of those are small steps towards the answer

  3. #3
    Registered User
    Join Date
    Apr 2002
    Posts
    2
    i know how to do the number sequence....

    hmmm... well i try stuff ... hopefully i can get it

  4. #4
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    Code:
    for ( x = 6, y = 1; x > 0; x--, y += 2 ) 
      printf ( "%*c%0*c\n", x, ' ', y, '0' );
    Enjoy

    -Prelude
    My best code is written with the delete key.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. rotating the board
    By axon in forum C++ Programming
    Replies: 5
    Last Post: 02-26-2003, 09:09 AM
  2. Pick a number....
    By Salem in forum A Brief History of Cprogramming.com
    Replies: 39
    Last Post: 01-19-2003, 06:27 AM
  3. Newbie here plz help!
    By Unregistered in forum C Programming
    Replies: 3
    Last Post: 04-29-2002, 07:36 PM
  4. Newbie Source Code question. Hlp Plz?
    By BOOGIEMAN in forum Game Programming
    Replies: 4
    Last Post: 12-14-2001, 03:30 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21