Skip to content

Instantly share code, notes, and snippets.

internal class Program
{
static void Main(string[] args)
{
string typeOfHuman = "Student";
string name = "Миша";
string surename = "Иванов";
int numberOfClass = 7;
char letterOfClass = 'A';
int age = 17;
{
string name;
int age;
string zodiacSign;
string placeOfWork;
Console.WriteLine("Как вас зовут?");
name = Console.ReadLine();
Console.WriteLine("Сколько вам лет?");
age = Convert.ToInt32(Console.ReadLine());
{
int allPictures = 52;
int picturesInRow = 3;
int countOfRows;
int remainsOfPictures;
countOfRows = allPictures/picturesInRow;
remainsOfPictures = allPictures%picturesInRow;
Console.WriteLine($"Количество рядов с картинками: {countOfRows}. Количество картинок сверх меры: {remainsOfPictures} ");
{
string cupOfTea = "Кофе";
string cupOfCoffe = "Чай";
string tempCup;
Console.WriteLine($"В чашке с чаем - {cupOfTea}. В чашке с кофе - {cupOfCoffe}");
tempCup = cupOfTea;
cupOfTea = cupOfCoffe;
cupOfCoffe= tempCup;
{
int countOfCoins;
int requestCristals;
int playerCristals;
int cristalPrice = 12;
Console.WriteLine("Сколько у вас золота с собой?");
countOfCoins = Convert.ToInt32(Console.ReadLine());
Console.WriteLine($"Кристалы стоят по {cristalPrice} монет за штуку. Сколько кристалов вы бы хотели купить?");
requestCristals = Convert.ToInt32(Console.ReadLine());
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp2
{
internal class Program
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace shoping
{
internal class Program
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CoffeeShop
{
internal class Program
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace shop
{
internal class Program
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace hospital
{
internal class Program
{