1 Replies - 4442 Views - Last Post: 13 March 2010 - 11:38 AM Rate Topic: -----

#1 sgalin  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 13-March 10

vb.net Prime Numbers

Posted 13 March 2010 - 07:44 AM

Hello,
I am suppose to write a program using if statements and loops: Create an application that reads an integer number from the user and then displays in the List Box all prime numbers(for this project we are going to violate “positive” rule and make our prime numbers be negative as well) between user’s number and zero 5 numbers in one row. The application also displays how many prime numbers there are between user’s number and zero, and the total sum of all these prime numbers. I have no code to post because I can't figure out how to even start the program.


Thank you.

Is This A Good Question/Topic? 0
  • +

Replies To: vb.net Prime Numbers

#2 entity8817  Icon User is offline

  • New D.I.C Head
  • member icon

Reputation: 0
  • View blog
  • Posts: 17
  • Joined: 16-June 09

Re: vb.net Prime Numbers

Posted 13 March 2010 - 11:38 AM

start by trying to break down the program into simple task on a piece of paper. Then workout how you would accomplish the tasks. Seeing as it is mainly about primes I would start by trying to find out how to identify a prime number and work backwards from there.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1