Results 1 to 6 of 6
  1. #1
    SmellyFoot is offline Member
    Join Date
    Mar 2011
    Posts
    2
    Rep Power
    0

    Default need help with Number Pyramid with Double Digits

    Dont worry figured it out sorry!
    Last edited by SmellyFoot; 03-29-2011 at 11:56 AM.

  2. #2
    UJJAL DHAR is offline Senior Member
    Join Date
    Apr 2010
    Location
    Dhaka,Bangladesh
    Posts
    180
    Rep Power
    0

    Default

    use ceil() for the number of spaces you are printing.

    Show me your code.


    Regards
    Ujjal

  3. #3
    sunde887's Avatar
    sunde887 is offline Moderator
    Join Date
    Jan 2011
    Location
    Richmond, Virginia
    Posts
    3,069
    Blog Entries
    3
    Rep Power
    8

    Default

    Try inserting a space in between any number less than 10.

  4. #4
    SmellyFoot is offline Member
    Join Date
    Mar 2011
    Posts
    2
    Rep Power
    0

    Default

    Don't worry just found out how :D
    Last edited by SmellyFoot; 03-29-2011 at 11:53 AM.

  5. #5
    Jodokus's Avatar
    Jodokus is offline Senior Member
    Join Date
    Jan 2011
    Location
    Amsterdam, the Netherlands
    Posts
    230
    Rep Power
    4

    Default

    Please don't delete the content of your thread!
    I came here to learn from your mistakes.

  6. #6
    sunde887's Avatar
    sunde887 is offline Moderator
    Join Date
    Jan 2011
    Location
    Richmond, Virginia
    Posts
    3,069
    Blog Entries
    3
    Rep Power
    8

    Default

    Instead of editing the content, mark it as solved. To mark it as solved, use the thread tools at the top of the post.

Similar Threads

  1. Separating the digits of given number
    By lb2 in forum New To Java
    Replies: 5
    Last Post: 09-09-2010, 06:29 AM
  2. generating double random number between 0 and 1
    By sara12345 in forum New To Java
    Replies: 6
    Last Post: 04-17-2010, 09:04 PM
  3. Count number of digits in string using scanner
    By wendysbiggy in forum New To Java
    Replies: 35
    Last Post: 01-20-2010, 06:11 AM
  4. Will make a pyramid of some kind out of a number
    By romina in forum New To Java
    Replies: 1
    Last Post: 08-07-2007, 06:20 AM
  5. Help with convert a double type number
    By trill in forum New To Java
    Replies: 1
    Last Post: 08-06-2007, 09:48 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •