Skip to content

задание 3 выполнено Кайтукова#84

Open
yana681 wants to merge 2 commits intoNOSUmit-PM-2:masterfrom
yana681:kaytukova_lesson1_homework1_task3
Open

задание 3 выполнено Кайтукова#84
yana681 wants to merge 2 commits intoNOSUmit-PM-2:masterfrom
yana681:kaytukova_lesson1_homework1_task3

Conversation

@yana681
Copy link

@yana681 yana681 commented Mar 1, 2026

No description provided.

@yana681 yana681 changed the title задание 3 выполнено задание 3 выполнено Кайтукова Mar 1, 2026
Copy link
Contributor

@Makarenkomd Makarenkomd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

доделать

{
public class CalculatorController : Controller
{
public string Index(double num1, double num2, string operation)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Если один или оба сегмента с числами отсутствуют, то их значения равны нулю. Если отсутствует сегмент со знаком арифметической операции, то над числами производится операция сложения.
не сделано

case "/":
if (num2 == 0)
{
Console.WriteLine("Ошибка: деление на ноль!");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

куда?!!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants