82.0k views
3 votes
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; }

User Kupa
by
8.5k points

1 Answer

2 votes

Answer:

10

Step-by-step explanation:

num1=3 and num2=2

num3=myproc(num1)+myproc(num2)

myproc(num1) results 6

myproc(num2) results 4

when we add both e get 10

User Falvojr
by
8.2k points