ok... you can use a try catch but what if i have 100 lines of code, you mean to say you have to try catch it in 100 times? or arrrgggghhhh! please see below sample.
private int Calculate(int x, int y)
My problem is we don't know what line will the error occur. suppose the error will be in x=x+y; so it will resume in y=y-x; or the error will be in y=y-x; and again it must resume in Calculate=x+y;
and please don't ask me why it must resume...Just help me to this issue please... that it must resume to next statement if there's an error...
I need to comput and display the sum and average of the cubes of the even natural numbers between 2 and n. Where n is entered by the user. Im stuck on how to average the sum of the cubes. Help Please. This is what I have so far.