8th Apr 2019, 8:08 AM
SWETA X
SWETA X - avatar
2 Answers
+ 6
Playground\(14,8): error CS0136: A local or parameter named 'x' cannot be declared in this scope because that name is used in an enclosing local scope to define a local or parameter There was also an error at line 15 very similar to the error statement above. Translation- Because you are passing x and y as parameters for the sum method you can't declare x and y inside the sum method. Remove int x; and int y; at lines 14 and 15. Error codes and statements should be treated as clues to help debug code.
8th Apr 2019, 8:48 AM
ODLNT
ODLNT - avatar
6th May 2019, 4:06 AM
kuldeep bhandari
kuldeep bhandari - avatar