Please help!!!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Bluerose939
    New Member
    • Dec 2017
    • 1

    Please help!!!

    ive been stuck on this problem for a while and I cant figure out how to write the program without using anything past looping because I'm a beginner so please help!!
    Write a program that prompts the user to input a positive integer. It should then output a message
    indicating whether the number is a prime number or not. Solve this program using a flag
    controlled loop.
    For an added bonus if the number is not prime, you can display all the numbers it divides by.
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    This is an exact copy of someone's else's post. This is homework?

    First step: What is a prime number?

    Post your answer and we'll go from there.

    Comment

    • donbock
      Recognized Expert Top Contributor
      • Mar 2008
      • 2427

      #3
      Refer to this question.

      Comment

      Working...