- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
using System;
namespace c_2
{
    class Program
    {
        static void Main(string[] args)
        {
        start: 
        Console.WriteLine("введите первое число");
        var a = Convert.ToDouble(Console.ReadLine());;
        Console.WriteLine("введите второе число");
        var b = Convert.ToDouble(Console.ReadLine());;
        Console.WriteLine("Введите действие(+ - * /)");
        string act=Console.ReadLine();
        if (act == "+") 
        {
            Console.WriteLine(a+b);
        } 
        else
        {
            if (act == "-")
            {
                Console.WriteLine(a - b); 
            }
            else
            {
                if(act=="*")
                {
                    Console.WriteLine(a*b);
                }
                else
                {
                    if (act == "/")
                    {
                        Console.WriteLine(a/b); 
                    }
                }
        }
        Console.WriteLine("Выйти?(y/n)");
        string exit = Console.ReadLine();
        if (exit == "y" )
        {
            Environment.Exit(0);
        }
        else
        {
            if (exit == "n")
            {
                goto start;
            }
            
            {
                
            }
        }
        }
        }
        
    }
}
                                 
        
Твои правила.
https://govnokod.ru/21275#comment356368
это неправильное завершение работы. ты не вывел «теперь питание компьютера можно отключить».
Я думал тут ему ооп и полиморфизм посоветуют.
Или хотя бы кокозатели на функции.
> не порти
А чего тут портить?
Чай не Сишка и не Паскаль.
Воот. Уже пошли годные мысли!