Jump to content

How to quit a program

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
jendomatic

jendomatic

    Newbie

  • Members
  • Pip
  • 5 posts
none

Edited by jendomatic, 08 April 2010 - 01:37 AM.


#2
gokuajmes

gokuajmes

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 518 posts
here have a go its a Visual C# program
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