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
int age = 20; | |
int coins = 3; | |
int dollars = 3; | |
byte steps = 3; | |
sbyte balance = -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
string name; | |
string surname; | |
int age; | |
string city; | |
Console.WriteLine("Как вас зовут?"); | |
name = Console.ReadLine(); | |
Console.WriteLine("\nКакая у вас фамилия?"); | |
surname = 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
int imagesTotal = 52; | |
int imagesInRow = 3; | |
int albumRows = imagesTotal / imagesInRow; | |
int excessImages = imagesTotal % imagesInRow; | |
Console.WriteLine(albumRows + " полных строк в альбоме\n"); | |
Console.WriteLine(excessImages + " картинок в неполной строке"); | |
Console.ReadKey(); |
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
string guest1 = "Коля"; | |
string guest2 = "Петя"; | |
string holder; | |
Console.WriteLine($"Гость 1 - {guest1}, Гость 2 - {guest2}"); | |
holder = guest1; | |
guest1 = guest2; | |
guest2 = holder; |
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 Переменные_ДЗ1 | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int gold; | |
int order; |
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 Переменные_ДЗ1 | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int patientsCount; | |
int minutesInHour = 60; |
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 HomeWorks | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Console.WriteLine("Какую фразу мне написать?"); | |
string phraze = 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; | |
namespace HomeWorks | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
const string CommandExit = "exit"; | |
string input = null; |
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; | |
namespace HomeWorks | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ |
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 HomeWorks | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Random randomizer = new Random(); |
OlderNewer