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
Arnie Mateo
NA
2
0
newbie on C#.net
Oct 19 2006 8:16 PM
I have created a sample program that will add the 4 numbers and it will divide it to 4. Theres no error on the code but the output is wrong. . . i can't figure out what is worong. So please help meh. This is my code: private void btnCalculateGrade_Click(object sender, System.EventArgs e) { double a; a = double.Parse(this.txt1stgrading.Text) + double.Parse(this.txt2ndgrading.Text) + double.Parse(this.txt3rdgarding.Text) + double.Parse(this.txt4thgrading.Text) / 4; this.lblTotal.Text = a.ToString(); }
Reply
Answers (
1
)
Looping round a switch statement
Delete multiple rows on button click