Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

can i call the main function inside the same main

$
0
0

static void main(string[ args])

{

int a;

a=convert.ToInt16(console.ReadLine());

if(1==a)

{

Console.WriteLine("ALLAH HAFIZ, bye bye");    //print some thing

}

if(2==a)

{

Console.WriteLine(main());

}

Console.ReadKey();

}


Viewing all articles
Browse latest Browse all 31927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>