
 
                                                 
                                                1)
var
 a, b: integer;
begin
 writeln('Введите a, b: '); readln(a, b);
 if(b mod a = 0) then writeln('Является делителем')
 else writeln('Не является делителем');
end.
2)
var
 x, y, tmp: real;
begin
 repeat
 writeln('Введите x, y: '); readln(x, y);
 until(x <> y);
 if(x > y) then begin
 tmp := y;
 y := (x + y) / 2;
 x := 2*(x * tmp);
 writeln('Большее - X = ', x, ' Меньшее - Y = ', y);
 end else begin
 tmp := x;
 x := (x + y) / 2;
 y := 2*(tmp * y);
 writeln('Большее - Y = ', y, ' Меньшее - X = ', x);
 end;
end.
 
                                                Код:
using System;
namespace WordsCounter
{
class Bishop
{
private int x, y;
public Bishop(int x, int y)
{
this.x = x;
this.y = y;
}
public bool CanIAttackIt(int x, int y)
{
return Math.Abs(x - y) == Math.Abs(this.x - this.y);
}
}
class Program
{
static void Main(string[] args)
{
var x0 = int.Parse(Console.ReadLine()!);
var y0 = int.Parse(Console.ReadLine()!);
var x = int.Parse(Console.ReadLine()!);
var y = int.Parse(Console.ReadLine()!);
Console.WriteLine((new Bishop(x0, y0)).CanIAttackIt(x, y));
}
}
}


 
                                                 
                                                 
                                                 
                                                 
                                                 
                                                 
                                                 
                                                 
                                                
Объяснение:
1. в центр рабочей области
2.левую
3. можно