Help with programing (C)?

every time I run it I never get the right answer

Testing with seedVal = 4

Your output

3

3

expected output

1

3

Attachment image

1 Answer

Relevance
  • 1 month ago
    Favorite Answer

    You're just setting seedVal twice and printing the second one twice.

    Move the second "seedVal =..." between the two "print" statements.

    • malia1 month agoReport

      Thank you!

    • Login to reply the answers
Still have questions? Get your answers by asking now.