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
Prime b
NA
810
346k
Need help with loops
Jan 2 2012 10:33 PM
This is the problem:
Write a console-based application that allows the user to
enter any number of integer values continuously (in any
order) until the user enters 999. Display the sum of the values
entered, not including 999.
This is what I have done
int number = 1;
double sum;
const int LIMIT = 999;
while( number < LIMIT )
{
Console.WriteLine("{0}", number);
number += 1;
}
My question is
how can i display the sum of the values entered
?
Reply
Answers (
3
)
C# how to I make images pop up at a certain time?
Help with loops