This file contains 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
ushort coinsCount; | |
float currentTime; | |
string characterName; | |
bool isDead; | |
uint enemyDamage; | |
double cooldownBetweenAttacks; | |
int speed; | |
byte armor; | |
char enemyLabel; | |
short health; |
This file contains 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
int row = 3; | |
int count = 52; | |
int rowCount = count / row; | |
int remainingCaptures = count % row; | |
Console.WriteLine($"Будет выведено {rowCount} полностью заполненных рядов и останется {remainingCaptures} картинок сверх меры"); |
This file contains 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
int goldCount; | |
int price = 12; | |
int crystallCount; | |
bool enoughGold; | |
Console.WriteLine("Доброго времени суток, путник, ты попал в лавку драгоценностей."); | |
Console.WriteLine($"Я готов предложить на продажу кристаллы по {price} золотых монет."); | |
Console.Write("Сколько золота у вас сейчас: "); | |
goldCount = Convert.ToInt32(Console.ReadLine()); | |
Console.Write("Сколько кристаллов ты хочешь купить: "); |
This file contains 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
int peopleCount; | |
int timeForOnePerson = 10; | |
int waitingTime; | |
Console.WriteLine("Вы пришли в поликлинику."); | |
Console.Write("Сколько перед вами человек: "); | |
peopleCount = Convert.ToInt32(Console.ReadLine()); | |
waitingTime = peopleCount * timeForOnePerson; | |
int hours = waitingTime / 60; |
This file contains 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
int age; | |
string name; | |
string post; | |
int yearsWorked; | |
int pay; | |
Console.WriteLine("Добрый день, я хотел бы задать вам несколько вопросов."); | |
Console.Write("Как Вас зовут: "); | |
name = Console.ReadLine(); | |
Console.Write("Сколько Вам лет: "); |
This file contains 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
string message; | |
int messageCount = 5; | |
Console.Write("Введите сообщение: "); | |
message = Console.ReadLine(); | |
for (int i = 0; i < messageCount; i++) | |
Console.WriteLine(message); |
This file contains 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
string endMessage = "exit"; | |
string inputMessage = ""; | |
while (endMessage != inputMessage) | |
{ | |
Console.Write("Введите 'стоп-слово': "); | |
inputMessage = Console.ReadLine(); | |
} |
This file contains 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
string endMessage = "exit"; | |
string inputMessage = ""; | |
while (true) | |
{ | |
Console.Write("Введите 'стоп-слово': "); | |
inputMessage = Console.ReadLine(); | |
if (inputMessage == endMessage) | |
{ | |
break; |
This file contains 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
float rub = 100; | |
float usd = 12; | |
float eur = 20; | |
int rubToUsd = 60; | |
float rubToEur = 90; | |
float UsdToEur = 1.2f; | |
string valuesToTransfer; | |
float countToChange; | |
bool isMoneyEnought = true; | |
char continueValue; |
This file contains 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
string name = ""; | |
int yearOfBirth = 0; | |
string password = ""; | |
string chosenHobby = "Отсутвуют"; | |
string chosenParameter; | |
bool closeSite = false; | |
Console.WriteLine("Добро пожаловать на наш форум."); | |
while (!closeSite) | |
{ |
OlderNewer