Continious Code ?

  • Thread starter Thread starter Che00
  • Start date Start date
C

Che00

Guest
This console app code runs once then close when i hit enter but i need it to be continious wht would i change?

using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp3
{
class Program
{
public Queue VisitedQueue = new Queue();
public Program myprogram = new Program();
static void Main()
{
//Console.WriteLine("YESSSSSS");
//Console.ReadKey();
//Console.WriteLine("M");
//Console.ReadKey();


int M = Main1();

Console.WriteLine(M);
Console.ReadKey();

}

static int Main1()
{
string H;
int M;
H = Console.ReadLine();
M = Convert.ToInt32(H) + 5;
return M;

}
}
}

Continue reading...
 

Similar threads

Back
Top