just replace add method with public int add(int x,int y) { return x+y; } And remove the global variable result from the code
R
rajansethi
@rajansethi
Posts
-
gloabal variable -
how to read rext file?You can use the readline function of the StreamReader. If the line contains the desired text such as txt 1, then read the next line and you will get the customer name etc.