Question: Using C# window form application //start a task to run the following code: //this task should allow for task cancellation. btnQuestion_3 buton (below) should be
Using C# window form application
//start a task to run the following code: //this task should allow for task cancellation. btnQuestion_3 buton (below) should be able to cancel it
/* int i; double sum =0; for (i = 1; i <= 1000000000;i++ ) { sum+=rand.Next(1000000,2000000); Thread.SpinWait(10000000); } double avg = sum / (i - 1); //add code to display the avg to the richtextbox1
*/
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
