Search:

Type: Posts; User: Jackbenimble

Search: Search took 0.01 seconds.

  1. Replies
    15
    Views
    4,858

    Anduril, take a look at this. /*This...

    Anduril, take a look at this.




    /*This program should print diamond shapes composed of * characters*/

    #include <stdio.h>
    #include <math.h>
  2. Replies
    15
    Views
    4,858

    God save the queen, I figured out how to print a...

    God save the queen, I figured out how to print a full, complete, correct diamond. Whew (brushes sweat off forehead).

    Now, however, I need to add a few things to my code. After I print the...
  3. Replies
    15
    Views
    4,858

    Ok, thank you everyone for all the help and...

    Ok, thank you everyone for all the help and suggestions. I'm gonna step back and look at my for loops and the logic that occurs. However, I believe that I'm on the right track and that I should be...
  4. Replies
    15
    Views
    4,858

    It certainly makes sense, but it changes my...

    It certainly makes sense, but it changes my method of operation. In the code where I skip even rows, I am able to print out all the way to the maximum star level. Ie, if the use enters 5, my code...
  5. Replies
    15
    Views
    4,858

    Ok, I'm still confused on how to embed it. Also,...

    Ok, I'm still confused on how to embed it. Also, my row sizes start at 1 and increase by 2. So it goes row 1, row 3, row 5...etc.

    Should it be



    for (space = (half_width-row+1); space = 0;...
  6. Replies
    15
    Views
    4,858

    I managed to figure out how to print the top half...

    I managed to figure out how to print the top half of the diamond. However, I am still unsure on how to do the spacing. I can do the spacing backwards, but I can't manage to print it in the right...
  7. Replies
    15
    Views
    4,858

    star = (row*2-1) but I don't know to implement...

    star = (row*2-1)

    but I don't know to implement this in a for loop. Like when row = 1, print (1*2-1) =1 stars. When row = 2 print 3 stars.

    I also can't figure out a formula to relate spaces and...
  8. Replies
    15
    Views
    4,858

    For Loop Trouble

    I'm trying to write a code that prints out a diamond like shape when input is entered by the user. For example a user might enter the number 3 and this would print out


    *
    ***
    ...
Results 1 to 8 of 8