This file contains hidden or 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
namespace basics11 | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
const string CommandExit = "Exit"; | |
const string CommandScrapToGold= "S->G"; | |
const string CommandScrapToPlatinum = "S->P"; | |
const string CommandPlatinumToScrap= "P->S"; |
This file contains hidden or 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
namespace basics10 | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
const string CommandShowLorem = "lorem"; | |
const string CommandShowJoke = "joke"; | |
const string CommandRandomNumber = "random"; | |
const string CommandClearConsole = "clear"; |
This file contains hidden or 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
namespace basics9 | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int sum = 0; | |
int maxRandomNumber = 100; | |
int[] multiples = [5, 3]; | |
Random randomNumber = new Random(); |
This file contains hidden or 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
namespace basics8 | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int step = 7; | |
int maxNumber = 789; | |
for (int sequenceNumber = 5; sequenceNumber <= maxNumber; sequenceNumber += step ) |
This file contains hidden or 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
namespace basics6 | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
const string ExitCommand = "exit"; | |
string userInput; | |
bool shouldContinueSearch = true; |
This file contains hidden or 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
namespace basics7 | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int repetitions; | |
Console.WriteLine("Вы заходите в тренажёрный зал, сколько раз хотите поднять гирю сегодня?"); | |
repetitions = Convert.ToInt32(Console.ReadLine()); |
This file contains hidden or 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; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace basics5 | |
{ | |
internal class Program | |
{ |
This file contains hidden or 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; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace basics4 | |
{ | |
internal class Program | |
{ |
This file contains hidden or 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; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace basics1 | |
{ | |
internal class Program | |
{ |
This file contains hidden or 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; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace basics3 | |
{ | |
internal class Program | |
{ |
NewerOlder