Untitled
unknown
csharp
2 years ago
1.4 kB
6
Indexable
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using Microsoft.VisualBasic;
namespace Задание2
{
static class Program
{
static void Main()
{
try
{
int number1, number2;
number1 = Int32.Parse(
Interaction.InputBox("Введите первое число: ")
);
number2 = Int32.Parse(
Interaction.InputBox("Введите второе число: ")
);
if (number1 == number2)
{
MessageBox.Show("Введенные вами числа равны!");
}
else if (number1 > number2)
{
MessageBox.Show("Ваше первое число больше второго!");
}
else if (number2 > number1)
{
MessageBox.Show("Ваше второе число больше первого!");
}
}
catch
{
MessageBox.Show("Требуется ввести число!");
}
}
}
}Editor is loading...
Leave a Comment