Question: What does the label display when the user clicks the button? void btnSubmit_Click(object sender, EventArgs e) { int num1 = 3; int num2 = 2;
What does the label display when the user clicks the button? void btnSubmit_Click(object sender, EventArgs e) { int num1 = 3; int num2 = 2; int num3;
num3 = myProc(num1) + myProc(num2); lblResult.Text = Convert.ToString(num3); }
int myProc(int numPar) { return numPar * numPar; }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
