Skip to content

Instantly share code, notes, and snippets.

using System;
namespace практика
{
internal class Program
{
static void Main(string[] args)
{
int minutesInHour = 60;
int minutesOnOnePeople = 10;
Console.Write("Людей в очереди: ");
@NikUse
NikUse / gist:893e205a16ae2bd212ad15da7c6cac13
Created May 17, 2026 13:02
Магазин кристаллов
using System;
namespace практика
{
internal class Program
{
static void Main(string[] args)
{
int cristalPrice = 4;
Console.Write("Сколько у вас золота:");
int goldQuantity = Convert.ToInt32(Console.ReadLine());
@NikUse
NikUse / gist:497f8e056f0bcdad437700f182ab71e2
Created May 17, 2026 12:40
Перестановка местами значений
using System;
namespace практика
{
internal class Program
{
static void Main(string[] args)
{
string name = "Abramow";
string surname = "Nikita";
Console.WriteLine($"До перестановки: Имя: {name}; Фамилия {surname}");
using System;
namespace практика
{
internal class Program
{
static void Main(string[] args)
{
int pictureInAlbom = 52;
int pictureInRow = 3;
int rowQuantity = pictureInAlbom / pictureInRow;
using System;
namespace практика
{
internal class Program
{
static void Main(string[] args)
{
int cucumbersQuantity = 10;
int tomatesQuantity = 23;
int agePlayer = 18;
@NikUse
NikUse / gist:b53db9baaf2faa0fdfdd322f07328124
Created May 16, 2026 20:53
Работа со строками
namespace практика
{
internal class Program
{
static void Main(string[] args)
{
Console.Write("Как вас зовут?:");
string name = Console.ReadLine();
Console.Write("Сколько вам лет?:");
string age = Console.ReadLine();
using System;
namespace практика
{
internal class Program
{
static void Main(string[] args)
{
int cucumbers = 10;
int tomates = 23;
int age = 18;