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 ReadInt | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int number = RequestUserNumber(); |
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.Data; | |
namespace UDEMY | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Console.Write("Введите скобочное выражение: "); |
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 UDEMY | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int[] numbers = { 1, 2, 3, 4 }; | |
int count; |
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 UDEMY | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
string text = "Я хочу стать разработчиком игр на C# Unity"; |
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 UDEMY | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int[] numbers = new int[10] { 15, 7, 10, 68, 102, 38, 46, 55, 78, 87 }; |
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 UDEMY | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int[] numbers = new int[30] { 23, 23, 77, 48, 48, 48, 48, 12, 90, 34, 34, 34, 34, 34, 67, 67, 56, 56, 89, 89, 89, 72, 45, 45, 18, 18, 99, 99, 99, 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; | |
class Program | |
{ | |
static void Main() | |
{ | |
const string CommandSum = "sum"; | |
const string CommandExit = "exit"; | |
int[] numbers = new int [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; | |
class Program | |
{ | |
static void Main() | |
{ | |
int[] numbers = { 1, 3, 7, 1, 2, 6, 3, 2, 9, 0, 5, 10, 8, 6, 4, 7, 2, 11, 15, 1, 2, 6, 4, 9, 3, 2, 8, 1, 0, 5 }; | |
int arrayLength = numbers.Length; | |
int lastIndex = arrayLength - 1; |
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 ConsoleApp4 | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int[,] matrix = | |
{ |
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 ConsoleApp4 | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int[,] number = | |
{ |
NewerOlder