This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace domashka | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
string name = "Орцхоев"; | |
string surname = "Орц"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace domashka | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Console.WriteLine("Как вас зовут?"); | |
string name = Console.ReadLine(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace domashka | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
bool isDead; | |
byte playerHealth; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Задача "Что выведется в консоль и почему?" | |
int a = 10; | |
int b = 38; | |
int c = (31 – 5 * a) / b; | |
Console.WriteLine(c); | |
Выведется 0, потому что в примере явно типизированные int значения a, b и c соответственно может сохранить в себе только целое число, в итоге от ответа (-0.5) отбросится дробная часть и останется нуль. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace domashka | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int totalPictures = 52; | |
int maxPicturesInRow = 3; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace ЯЮниор_Домашка | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int crystalToMoney = 15; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace ЯЮниор_Домашка | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int minutesInHour = 60; | |
int minutesForOnePerson = 10; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace ЯЮниор_Домашка | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Console.Write("Введи любое слово: "); | |
string phraseToRepeat = Console.ReadLine(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace ЯЮниор_Домашка | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
string keyWordToExit = "exit"; | |
string userInput; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace ЯЮниор_Домашка | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int cycleStart = 5; | |
int cycleEnd = 96; |
OlderNewer