Skip to content

Instantly share code, notes, and snippets.

View RPVUnityDeveloper's full-sized avatar

RPV RPVUnityDeveloper

View GitHub Profile
using System;
public class Class1
{
public Class1()
{
int age = 18;
char symbol = 'A';
char emptySymbol = " ";
@RPVUnityDeveloper
RPVUnityDeveloper / gist:917b0df2e0479d21cfa01c13aa79fe5e
Created November 1, 2025 08:02
Работа со строками
public class Class
{
static void Main()
{
string name;
string nameWork;
int age;
Console.WriteLine("Как вас зовут?");
name = Console.ReadLine();
public class Class1
{
static void Main()
{
int totalImages = 52;
int numberImagesOfRow = 3;
int rowsImages;
int remainsImages;
@RPVUnityDeveloper
RPVUnityDeveloper / gist:bfab14dfee478db60531f6d3253643f7
Created November 1, 2025 08:11
Перестановка местами значений
public class Class1
{
static void Main()
{
int totalImages = 52;
int numberImagesOfRow = 3;
int rowsImages;
int remainsImages;
@RPVUnityDeveloper
RPVUnityDeveloper / gist:8829ca81ca1d6c2b97ccf246fb06cb82
Created November 1, 2025 08:27
Магазин кристаллов
public class Class3
{
static void Main()
{
int crystalPrice = 4;
Console.Write("Введите кол - во золото в вашем кашельке:" );
int gold = Convert.ToInt32( Console.ReadLine() );
Console.WriteLine($"Цена кристалла: {crystalPrice}");
public class Class3
{
static void Main()
{
int crystalPrice = 4;
Console.Write("Введите кол - во золото в вашем кашельке:" );
int gold = Convert.ToInt32( Console.ReadLine() );
Console.WriteLine($"Цена кристалла: {crystalPrice}");
@RPVUnityDeveloper
RPVUnityDeveloper / gist:f255e02f4437eecf9233dfc383f49247
Last active November 1, 2025 10:12
Освоение циклов
public class Class
{
static void Main()
{
string name;
int count;
Console.Write("Как вас зовут: ");
name = Console.ReadLine();
@RPVUnityDeveloper
RPVUnityDeveloper / gist:90eadfb7f9dadf8d5a19f526e27b8180
Created November 1, 2025 09:47
Контроль выхода
public class Class
{
static void Main()
{
string wordExit = "exit";
string word = "";
while (word != wordExit)
{
Console.Write("Введите слово: ");
@RPVUnityDeveloper
RPVUnityDeveloper / gist:86513cc4945e8be77148bddc57fab6b3
Last active November 1, 2025 11:15
Последовательность
public class Class
{
static void Main()
{
int number = 5;
int step = 7;
int maxNumber = 789;
for (int i = number; i <= maxNumber; i += step)
{
public class Class
{
static void Main()
{
Random random = new Random();
int minValue = -100;
int maxValue = 100;
int multipleX = 3;
int multipleY = 5;
int number = random.Next(minValue, maxValue);