Search:

Type: Posts; User: mallyg34

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    1,723

    terminate a bubble sort

    My bubble sort finishes before the loop finishes, so I get some unless printout. Is there a way I terminate my bubble sort early if no more swaps is being made with code without using bool?


    ...
  2. Replies
    9
    Views
    3,752

    We havent learned arrays yet in this language so...

    We havent learned arrays yet in this language so im sure I cant use it until we get to it. This how the output is suppose to look:

    6 is a perfect number
    Factors: 1, 2, 3
  3. Replies
    9
    Views
    3,752

    Can't I someway put a "cout" statement in a loop...

    Can't I someway put a "cout" statement in a loop to get the factors instead of make the code extra long.
  4. Replies
    9
    Views
    3,752

    I don't understand.

    I don't understand.
  5. Replies
    9
    Views
    3,752

    perfect number

    My program works fine and listed the 3 perfect numbers under 1000, but i need help with listing the factors of the perfect numbers. Can someone please help me out with this?




    #include...
Results 1 to 5 of 6