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
Josip Pavic
NA
20
10.8k
Beginner problem
Nov 11 2011 9:21 AM
I now you would find this funny, but my problem is for loop. MessageBox display wrong result. cant figure out why??
int loopStart;
int loopEnd;
int answer = 0;
loopStart = int.Parse(textBox1.Text);
loopEnd = int.Parse(textBox2.Text);
for (int i = loopStart; i < loopEnd; i++)
{
answer = answer + i;
}
MessageBox.Show(answer.ToString());
Thank for your help.
Jonny111
Reply
Answers (
7
)
Beginner need help
Command webbrowser