Edited by jendomatic, 08 April 2010 - 01:37 AM.
How to quit a program
Started by jendomatic, Mar 27 2010 06:35 AM
1 reply to this topic
#1
Posted 27 March 2010 - 06:35 AM
none
|
|
|
#2
Posted 27 March 2010 - 08:57 AM
here have a go its a Visual C# program
// The program runs until the user presses some other key than y
using System;
using System.Text;
namespace CsharpDebugging
{
class Program
{
static void Main(string[] args)
{
do
{
Console.WriteLine("Hi and welcome");
} while (Console.ReadLine().Trim().Equals("y"));
}
}
}
// The program runs until the user presses some other key than y


Sign In
Create Account

Back to top









