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
namespace LearnSharpWithLevelUpOrepators | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
const int CrystalPrice = 50; | |
int playerGold; | |
int basketMarket; |
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
const int CrystalPrice = 50; | |
int playerGold; | |
int playrCrystal; | |
Console.Write("Введите количество золота : "); | |
playerGold = Convert.ToInt32(Console.ReadLine()); | |
Console.WriteLine($"Приветсвую тебя путешествиник. В нашей лавке ты можешь приорести кристалы для себя. Каждый критал стоит : {CrystalPrice}"); |
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
string firstName = "Stark"; | |
string lastName = "Tony"; | |
Console.WriteLine($"Первоначальные данные Имя : {firstName}, Фамилия : {lastName}"); | |
string tempString; | |
tempString = firstName; | |
firstName = lastName; |
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
int columnCount = 3; | |
int picturesCount = 52; | |
int resultRows; | |
int remainder; | |
resultRows = picturesCount / columnCount; | |
remainder = resultRows % columnCount; | |
Console.WriteLine($"{picturesCount} картинки выстроятся в {resultRows} рядов с остатком {remainder}"); |
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
string heroName; | |
int historyYear; | |
string characterClass; | |
string cityName; | |
Console.Write("Придумайте имя героя : "); | |
heroName = Console.ReadLine(); | |
Console.Write("В каком году начинается история : "); | |
historyYear = Convert.ToInt32(Console.ReadLine()); |
NewerOlder