Skip to content

Instantly share code, notes, and snippets.

View Attosius's full-sized avatar

Attos Attosius

View GitHub Profile
@Attosius
Attosius / gist:9777263d085aeecefdda7958a2016768
Created August 29, 2025 19:33
ДЗ: Консольное меню
using System;
namespace IJuniorTasks
{
internal class Program
{
static void Main(string[] args)
{
const string CommandShowGreetings = "1";
const string CommandShowGoodbye = "2";
@Attosius
Attosius / gist:3e179f63dfe4711c46cf6105bc7cc6b7
Created August 29, 2025 19:17
ДЗ: Сумма чисел
using System;
namespace IJuniorTasks
{
internal class Program
{
static void Main(string[] args)
{
var maxNumber = 100;
var random = new Random();
@Attosius
Attosius / gist:d3263b9c446a6fe96f2b5679c0d021d7
Last active August 29, 2025 19:56
ДЗ: Последовательность
using System;
namespace IJuniorTasks
{
internal class Program
{
static void Main(string[] args)
{
var startNumber = 5;
var increment = 7;
@Attosius
Attosius / gist:4b8c61b6f90bb1ed50ce33462b0feeff
Last active August 29, 2025 19:42
ДЗ: Контроль выхода
using System;
namespace IJuniorTasks
{
internal class Program
{
static void Main(string[] args)
{
var wordForExit = "exit";
string userInput = null;
@Attosius
Attosius / gist:1d1b5b6d1d33eaa9b25727dcf21d0d54
Created August 29, 2025 19:02
ДЗ: Освоение циклов
using System;
namespace IJuniorTasks
{
internal class Program
{
static void Main(string[] args)
{
Console.Write($"Введите текст для повтора: ");
var text = Console.ReadLine();
@Attosius
Attosius / gist:4b93b7f5af02ed07563a7a0cbbb77388
Created August 25, 2025 18:52
ДЗ: Поликлиника
using System;
namespace IJuniorTasks
{
internal class Program
{
static void Main(string[] args)
{
Console.Write("Введите кол-во пациентов: ");
var patientsCount = Convert.ToInt32(Console.ReadLine());
@Attosius
Attosius / gist:352291db787bcefa1046c2140bcbedbe
Created August 25, 2025 18:42
ДЗ: Магазин кристаллов
using System;
namespace IJuniorTasks
{
internal class Program
{
static void Main(string[] args)
{
Console.Write($"Введите изначальное количество золота: ");
var goldAmount = Convert.ToInt32(Console.ReadLine());
@Attosius
Attosius / gist:4a3fbe7e5dd2345a5ee7847501caaf80
Created August 25, 2025 18:30
ДЗ: Перестановка местами значений
using System;
namespace IJuniorTasks
{
internal class Program
{
static void Main(string[] args)
{
var name = "Vasilev";
var surname = "Andrey";
@Attosius
Attosius / gist:99fd2f71aa249124e2540052b92d175d
Last active August 25, 2025 10:52
ДЗ: Картинки
using System;
namespace IJuniorTasks
{
internal class Program
{
static void Main(string[] args)
{
int picturesOnScreen = 52;
int picturesCountInRow = 3;
@Attosius
Attosius / gist:7eff4ec9d3953d4ad20f57719710c3b1
Last active August 24, 2025 19:10
ДЗ: Работа со строками
namespace IJuniorTasks
{
internal class Program
{
static void Main(string[] args)
{
Console.WriteLine("Добрый день, как вас зовут?");
string name = Console.ReadLine();
Console.WriteLine("Сколько вам лет?");
string age = Console.ReadLine();