-
October 21st, 2012, 01:10 PM
#1
Help Debugging (3.4) - 10/21/12
I need help debugging this. Can someone help me with this?
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace FixedDebugThree4
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void calculateButton_Click(object sender, EventArgs e)
{
int birth;
int year;
int age;
birth = Convert.ToInt32(textBox1.Text);
year = Convert.ToInt32(textBox2.Text);
age = year - birth;
outputLabel.Text = "On your birthday this year, \nyou were or will be " +
"{0} years old", age;
}
}
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|