Application won't compile with an error

Hi
Your code is faulty.

This is how it appears in VS Code after a first pass of indenting

image

This cannot work.

You input 2 method signatures for only one scope.

Where is the main() method body?
What about Execrcise1()?

I made an example of your code working @.NET Fiddle.

Cheers