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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!