Skip to content

Instantly share code, notes, and snippets.

string heroName;
int historyYear;
string characterClass;
string cityName;
Console.Write("Придумайте имя героя : ");
heroName = Console.ReadLine();
Console.Write("В каком году начинается история : ");
historyYear = Convert.ToInt32(Console.ReadLine());
int columnCount = 3;
int picturesCount = 52;
int resultRows;
int remainder;
resultRows = picturesCount / columnCount;
remainder = resultRows % columnCount;
Console.WriteLine($"{picturesCount} картинки выстроятся в {resultRows} рядов с остатком {remainder}");
string firstName = "Stark";
string lastName = "Tony";
Console.WriteLine($"Первоначальные данные Имя : {firstName}, Фамилия : {lastName}");
string tempString;
tempString = firstName;
firstName = lastName;
const int CrystalPrice = 50;
int playerGold;
int playrCrystal;
Console.Write("Введите количество золота : ");
playerGold = Convert.ToInt32(Console.ReadLine());
Console.WriteLine($"Приветсвую тебя путешествиник. В нашей лавке ты можешь приорести кристалы для себя. Каждый критал стоит : {CrystalPrice}");
namespace LearnSharpWithLevelUpOrepators
{
internal class Program
{
static void Main(string[] args)
{
const int CrystalPrice = 50;
int playerGold;
int basketMarket;
namespace LearnSharpWithLevelUpOrepators
{
internal class Program
{
static void Main(string[] args)
{
const int AppointmentTime = 10;
const int MinutsInHour = 60;
int patientCount;
namespace LearnSharpWithLevelUpOrepators
{
internal class Program
{
static void Main(string[] args)
{
int count;
string userMessage;
Console.Write("Введите сообщение : ");
namespace LearnSharpWithLevelUpOrepators
{
internal class Program
{
static void Main(string[] args)
{
const string ExitWord = "Exit";
string userInput;
Console.Write("Введите любое слово. Для выхода из программы введите сдово : Exit ");
namespace LearnSharpWithLevelUpOrepators
{
internal class Program
{
static void Main(string[] args)
{
int count;
string userMessage;
Console.Write("Введите сообщение : ");
namespace LearnSharpWithLevelUpOrepators
{
internal class Program
{
static void Main(string[] args)
{
const string ExitWord = "Exit";
string userInput;
Console.Write($"Введите любое слово. Для выхода из программы введите сдово : {ExitWord} ");