Skip to content

Instantly share code, notes, and snippets.

@pahaz pahaz/license.cs
Last active Aug 29, 2015

Embed
What would you like to do?
Заготовка для лицензионного соглашения
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class Program
{
static void Main(string[] args)
{
string LICENSE_CONFIRM = "Согласны ли вы с условием лицензионного соглашения? (y/n)";
string answ;
Console.WriteLine(LICENSE_CONFIRM);
answ = Console.ReadLine();
answ = answ.ToLower();
if (answ.IndexOf("y") != -1) {
Console.WriteLine("Yah!");
} else {
Console.WriteLine("Nop!");
}
Console.Read();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.