how to create function inside main function c# code example
Example: how to make a function inside a function c#
public static void Main(string[] arg) {
Console.WriteLine("hello");
void World() {
Console.WriteLine("world")
}
world();
}
/*
output:
hello
world
*/