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
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
string typeOfHuman = "Student"; | |
string name = "Миша"; | |
string surename = "Иванов"; | |
int numberOfClass = 7; | |
char letterOfClass = 'A'; | |
int age = 17; |
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 age; | |
string zodiacSign; | |
string placeOfWork; | |
Console.WriteLine("Как вас зовут?"); | |
name = Console.ReadLine(); | |
Console.WriteLine("Сколько вам лет?"); | |
age = Convert.ToInt32(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
{ | |
int allPictures = 52; | |
int picturesInRow = 3; | |
int countOfRows; | |
int remainsOfPictures; | |
countOfRows = allPictures/picturesInRow; | |
remainsOfPictures = allPictures%picturesInRow; | |
Console.WriteLine($"Количество рядов с картинками: {countOfRows}. Количество картинок сверх меры: {remainsOfPictures} "); |
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 cupOfTea = "Кофе"; | |
string cupOfCoffe = "Чай"; | |
string tempCup; | |
Console.WriteLine($"В чашке с чаем - {cupOfTea}. В чашке с кофе - {cupOfCoffe}"); | |
tempCup = cupOfTea; | |
cupOfTea = cupOfCoffe; | |
cupOfCoffe= tempCup; |
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 countOfCoins; | |
int requestCristals; | |
int playerCristals; | |
int cristalPrice = 12; | |
Console.WriteLine("Сколько у вас золота с собой?"); | |
countOfCoins = Convert.ToInt32(Console.ReadLine()); | |
Console.WriteLine($"Кристалы стоят по {cristalPrice} монет за штуку. Сколько кристалов вы бы хотели купить?"); | |
requestCristals = Convert.ToInt32(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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace ConsoleApp2 | |
{ | |
internal class Program | |
{ |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace shoping | |
{ | |
internal class Program | |
{ |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace CoffeeShop | |
{ | |
internal class Program | |
{ |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace shop | |
{ | |
internal class Program | |
{ |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace hospital | |
{ | |
internal class Program | |
{ |
OlderNewer