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; | |
namespace LearningProject | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int maxNumber = 103; | |
int startNumber = 5; |
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; | |
namespace LearningProject | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Random rand = new Random(); | |
int randomNumber = rand.Next(101); |
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; | |
namespace LearningProject | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
// Последовательность идет до максимального числа. | |
// Легче задать конечное условие, чем считать число повторений. Использую while |
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; | |
namespace LearningProject | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
string userMessage = ""; | |
string exitWord = "exit"; |
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; | |
namespace LearningProject | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
string userMessage = ""; |
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; | |
namespace LearningProject | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int repeatsCount; | |
string userMessage; |
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; | |
namespace LearningProject | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int peopleInQueue; | |
int minutesWaitOnePerson = 10; |
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; | |
namespace LearningProject | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int coins; | |
int crystals = 0; |
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; | |
namespace LearningProject | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
string namePerson1 = "Alex"; | |
string namePerson2 = "Maxim"; |
NewerOlder