var a, b, dif:Integer;
begin
readln(a);
readln(b);
if a > b then
dif:= a - b
else dif:= b - a;
Write(dif);
end.
с++
#include <iostream>
using namespace std;
int main()
{
int a, b;
cin>>a;
cin>>b;
if (a>b)
cout<<a-b;
}
else
cout<<b-a;
return 0;
var a, b, dif:Integer;
begin
readln(a);
readln(b);
if a > b then
dif:= a - b
else dif:= b - a;
Write(dif);
end.
с++
#include <iostream>
using namespace std;
int main()
{
int a, b;
cin>>a;
cin>>b;
if (a>b)
{
cout<<a-b;
}
else
cout<<b-a;
return 0;
}