Skip to content

Instantly share code, notes, and snippets.

View Fish-Square's full-sized avatar

Fish-Square Fish-Square

View GitHub Profile
@Fish-Square
Fish-Square / basics11.cs
Created August 31, 2025 16:49
ДЗ: Конвертер валют
namespace basics11
{
internal class Program
{
static void Main(string[] args)
{
const string CommandExit = "Exit";
const string CommandScrapToGold= "S->G";
const string CommandScrapToPlatinum = "S->P";
const string CommandPlatinumToScrap= "P->S";
@Fish-Square
Fish-Square / basics10.cs
Created August 24, 2025 12:13
ДЗ: Консольное меню
namespace basics10
{
internal class Program
{
static void Main(string[] args)
{
const string CommandShowLorem = "lorem";
const string CommandShowJoke = "joke";
const string CommandRandomNumber = "random";
const string CommandClearConsole = "clear";
@Fish-Square
Fish-Square / basics9.cs
Created August 24, 2025 12:08
ДЗ: Сумма чисел
namespace basics9
{
internal class Program
{
static void Main(string[] args)
{
int sum = 0;
int maxRandomNumber = 100;
int[] multiples = [5, 3];
Random randomNumber = new Random();
@Fish-Square
Fish-Square / basics8.cs
Created August 6, 2025 17:49
ДЗ: Последовательность
namespace basics8
{
internal class Program
{
static void Main(string[] args)
{
int step = 7;
int maxNumber = 789;
for (int sequenceNumber = 5; sequenceNumber <= maxNumber; sequenceNumber += step )
@Fish-Square
Fish-Square / basics6.cs
Created August 3, 2025 12:24
ДЗ: Контроль выхода
namespace basics6
{
internal class Program
{
static void Main(string[] args)
{
const string ExitCommand = "exit";
string userInput;
bool shouldContinueSearch = true;
@Fish-Square
Fish-Square / basics7.cs
Created August 3, 2025 11:49
ДЗ: Освоение циклов
namespace basics7
{
internal class Program
{
static void Main(string[] args)
{
int repetitions;
Console.WriteLine("Вы заходите в тренажёрный зал, сколько раз хотите поднять гирю сегодня?");
repetitions = Convert.ToInt32(Console.ReadLine());
@Fish-Square
Fish-Square / basics5.cs
Created July 22, 2025 18:32
ДЗ: Поликлиника
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace basics5
{
internal class Program
{
@Fish-Square
Fish-Square / basics4.cs
Created July 20, 2025 17:42
ДЗ: Магазин кристаллов
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace basics4
{
internal class Program
{
@Fish-Square
Fish-Square / basics1.cs
Created July 20, 2025 17:05
ДЗ: Работа со строками
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace basics1
{
internal class Program
{
@Fish-Square
Fish-Square / basics3.cs
Created July 20, 2025 16:59
ДЗ: Перестановка местами значений
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace basics3
{
internal class Program
{