Created
February 21, 2015 10:02
-
-
Save Kanol/962b28701ff73502e366 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 ConsoleApplication3 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
String Name, Answer, AnswerUp; | |
Int64 AnswerShort, Chastota; | |
Console.Write("Здравствуй, незнакомец! Введи свое имя для идентификации:"); | |
Name = Console.ReadLine(); | |
Console.Write("Привет, "); | |
Console.Write(Name); | |
Console.WriteLine(". Меня зовут Ксеоний."); | |
Console.Write(Name); | |
Console.WriteLine(", а у тебя есть дома компьютер?"); | |
Answer = Console.ReadLine(); | |
AnswerUp = Answer.ToUpper(); | |
AnswerShort = AnswerUp.IndexOf("А"); | |
if ((AnswerShort == 0) || (AnswerShort == 1)) | |
{ | |
Console.WriteLine("Это хорошо. Какая у его процессора частота в МГц?"); | |
Chastota = Convert.ToInt64(Console.ReadLine()); | |
if (Chastota > 2000) | |
{ | |
Console.WriteLine("Хорош но мой процессор гораздо мощнее"); | |
} | |
else | |
{ | |
Console.WriteLine("И у тебя еще хватило мощности меня активировать?"); | |
} | |
} | |
else | |
{ | |
Console.WriteLine("Бедняга"); | |
} | |
Console.ReadLine(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment