Skip to content

Instantly share code, notes, and snippets.

View Attosius's full-sized avatar

Attos Attosius

View GitHub Profile
@Attosius
Attosius / gist:96f365c1933bfe8c071ef329c3efdb6e
Last active September 1, 2025 17:39
ДЗ: Бой с боссом
using System;
namespace IJuniorTasks
{
internal class Program
{
static void Main(string[] args)
{
const string CommandUsualAttack = "1";
const string CommandFireBall = "2";
@Attosius
Attosius / gist:0a60e1fb50b1bd3508609cf5a035c054
Created August 31, 2025 16:31
ДЗ: Степень двойки
using System;
namespace IJuniorTasks
{
internal class Program
{
static void Main(string[] args)
{
var random = new Random();
var fromNumber = 29;
@Attosius
Attosius / gist:9dd9eafb67d77e73918bda6b3efac012
Created August 31, 2025 16:18
ДЗ: Кратные числа
using System;
namespace IJuniorTasks
{
internal class Program
{
static void Main(string[] args)
{
var nFrom = 10;
var nTo = 25;
@Attosius
Attosius / gist:bf3166fdc90fe2267320c2fee7d81a58
Created August 31, 2025 14:23
ДЗ: Программа под паролем
using System;
namespace IJuniorTasks
{
internal class Program
{
static void Main(string[] args)
{
var password = "111!!!111";
var secretMessage = "Hi!";
@Attosius
Attosius / gist:75f6405d542d676a0351cc872d9fb2d5
Last active August 31, 2025 16:39
ДЗ: Вывод имени
using System;
namespace IJuniorTasks
{
internal class Program
{
static void Main(string[] args)
{
Console.WriteLine("Введите имя ");
var userName = Console.ReadLine();
@Attosius
Attosius / gist:bd0591cb0b8d95310f92f740473ab619
Last active August 31, 2025 14:35
ДЗ: Конвертер валют
using System;
namespace IJuniorTasks
{
internal class Program
{
static void Main(string[] args)
{
const string CommandRubToUsd = "1";
const string CommandUsdToRub = "2";
@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;