TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
nimda_am
NA
1
0
Need small code please
Oct 27 2004 3:20 PM
Write a C# console program that determines prime numbers. You will ask the user for the number of prime numbers they wish to find and then output those prime numbers to the screen. The algorithm for determining the prime number is as follows: for (iCount = 2; iCount <= Math.Sqrt(number); iCount++) { if(number % iCount == 0) { //the number is not prime: //appropriate code goes here. } } if(number is prime) { //print the prime number //increase our counter } } //end Output 10 prime numbers per line Thank you x 10
Reply
Answers (
2
)
Process Redirect Input And Output
Trouble accessing data text in datagrid button column