Skip to content

Instantly share code, notes, and snippets.

View GigaOrts's full-sized avatar
😵‍💫

Orts Ortskhoev GigaOrts

😵‍💫
  • AGAVA
  • Minsk
View GitHub Profile
@GigaOrts
GigaOrts / Домашка 5.cs
Last active January 18, 2023 14:55
Домашка 5 Основы программирование
using System;
namespace domashka
{
class Program
{
static void Main(string[] args)
{
string name = "Орцхоев";
string surname = "Орц";
@GigaOrts
GigaOrts / Ввод-вывод.cs
Last active September 25, 2023 09:47
Домашка 4 Основы программирования
using System;
namespace domashka
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Как вас зовут?");
string name = Console.ReadLine();
@GigaOrts
GigaOrts / gist:7ed014be23b42d345d79d7f49ff63c7b
Last active January 18, 2023 14:38
Домашка 1 Основы программирования
using System;
namespace domashka
{
class Program
{
static void Main(string[] args)
{
bool isDead;
byte playerHealth;
Задача "Что выведется в консоль и почему?"
int a = 10;
int b = 38;
int c = (31 – 5 * a) / b;
Console.WriteLine(c);
Выведется 0, потому что в примере явно типизированные int значения a, b и c соответственно может сохранить в себе только целое число, в итоге от ответа (-0.5) отбросится дробная часть и останется нуль.
@GigaOrts
GigaOrts / gist:32b5e12bb5b88dc394c53e54353f21de
Last active January 18, 2023 14:47
Domashka 6 Основы программирования
using System;
namespace domashka
{
class Program
{
static void Main(string[] args)
{
int totalPictures = 52;
int maxPicturesInRow = 3;
@GigaOrts
GigaOrts / gist:380eae8e09e306732336e6fbb12a8401
Last active January 21, 2023 11:59
Домашка 7 Основы программирования
using System;
namespace ЯЮниор_Домашка
{
internal class Program
{
static void Main(string[] args)
{
int crystalToMoney = 15;
@GigaOrts
GigaOrts / gist:7612b8053c60222f71a7b7b0efa4c587
Last active January 21, 2023 12:01
Домашка 8 Основы
using System;
namespace ЯЮниор_Домашка
{
internal class Program
{
static void Main(string[] args)
{
int minutesInHour = 60;
int minutesForOnePerson = 10;
using System;
namespace ЯЮниор_Домашка
{
internal class Program
{
static void Main(string[] args)
{
Console.Write("Введи любое слово: ");
string phraseToRepeat = Console.ReadLine();
using System;
namespace ЯЮниор_Домашка
{
internal class Program
{
static void Main(string[] args)
{
string keyWordToExit = "exit";
string userInput;
using System;
namespace ЯЮниор_Домашка
{
internal class Program
{
static void Main(string[] args)
{
int cycleStart = 5;
int cycleEnd = 96;