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 Variables | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
// Значемые перемене (value) | |
int age = 30; // целое число | |
double weight = 72.5; // число с плавающй точкой |
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 WorkingWithStrings | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
string inp; // вспомогательная переменная для ввода данных | |
Console.WriteLine("-= Опрос пользователя =-"); |
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 PermutationOfValues | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
String firstName = "Ivanov"; | |
String lastName = "Valera"; | |
Console.WriteLine($"До: firstName = {firstName}, lastName = {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
namespace CrystalShop | |
{ | |
class Program | |
{ | |
static void Main() | |
{ | |
const int PricePerCrystal = 10; // N — цену за кристал пишим тут | |
Console.WriteLine("***-= Покупка кристаллов =-***"); |
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 WorkingWithStrings | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
string inp; // вспомогательная переменная для ввода данных | |
Console.WriteLine("-= Опрос пользователя =-"); |
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; | |
namespace CrystalShop | |
{ | |
class Program | |
{ | |
static void Main() | |
{ | |
const int PricePerCrystal = 10; | |
Console.WriteLine("***-= Покупка кристаллов =-***"); |
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 Picture | |
{ | |
class Program | |
{ | |
static void Main() | |
{ | |
int total = 52; | |
int row = 3; | |
int fullRows = total / row; |
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 WorkingWithStrings | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Console.WriteLine("-= Опрос пользователя =-"); | |
Console.Write("Как вас зовут? (Имя): "); | |
string firstName = Console.ReadLine(); |
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 ImageAlbumLayout | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int totalImageCount = 52; | |
int imagesPerRow = 3; |
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 ImageAlbumLayout | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
const int minutesPerPatient = 10; | |
const int minutesPerHour = 60; | |
Console.Write("Введите кол-во пациентов: "); |
OlderNewer