Go: package main

import (
	"fmt"
	"math"
)

func main() {
	var a, b float64
	fmt.Scanf("%v %v", &a, &b)
	fmt.Println(math.Abs(a - b))
}

C++: #pragma GCC target("sse,sse2,sse3,sse3,sse4,popcnt,abm,mmx,avx,tune=native")
#pragma GCC optimize("Ofast")

#include <bits/stdc++.h>

using namespace std;

using ll = long long;

int main(){
    int A,B;cin >> A >> B;
    cout<<abs(A-B)<<endl;
}

C++: #include <bits/stdc++.h>
using namespace std;

int main() {
	int x1, x2;
	cin >> x1 >> x2;

	cout << abs( x1 - x2 ) << endl;
}

C++: #include <iostream>
using namespace std;
int main(void){
    
    int x1,x2;
    cin>>x1>>x2;
    if(x1<=x2){
        cout<<x2-x1<<endl;
    }
    else{
        cout<<x1-x2<<endl;
    }
}

C++: #include <iostream>
using namespace std;
int main(void){
    int a,b;
    cin >> a >> b;
    if(a>b){
        cout << a-b << endl;
    }
    else cout << b-a << endl;
}

C++: #include <iostream>
using namespace std;
int main(void){
     int x1,x2;
     cin>>x1>>x2;
     if(x1<x2){cout<<x2-x1<<endl;}
     else if (x1>x2){cout<<x1-x2<<endl;}
     else if (x1==x2){cout<<"0"<<endl;}
    
     
    
}

C++: #include <iostream>
using namespace std;
int main(void){
    int a,b;
    cin>>a>>b;
    if(a>b) cout<<a-b;
    if(a==b)    cout<<"0";
    if(a<b) cout<<b-a;
    cout<<endl;
}