Created
February 28, 2015 11:38
-
-
Save Kanol/4670dfce2456ed26fc44 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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