Skip to content

Instantly share code, notes, and snippets.

@Kanol
Created February 28, 2015 11:38
Show Gist options
  • Save Kanol/4670dfce2456ed26fc44 to your computer and use it in GitHub Desktop.
Save Kanol/4670dfce2456ed26fc44 to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication4
{
class Program
{
static void Main(string[] args)
{
String answer, answerUp;
String Tochno = " точно";
String Tochno2 = "";
Int64 Y=0;
Console.WriteLine("Вы согласны с лицензионным соглашением?");
answer = Console.ReadLine();
answerUp = answer.ToUpper();
Y = answerUp.IndexOf("А");
while (Y != -1)
{
Console.Write("Вы");
Console.Write(Tochno2);
Console.WriteLine(" увeрены?");
answer = Console.ReadLine();
answerUp = answer.ToUpper();
Y = answerUp.IndexOf("А");
Tochno2 = Tochno2 + Tochno;
}
Console.WriteLine("Ну и зря!");
Console.ReadLine();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment