1.) C++
2.) RAPTOR
#include <cstdlib>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
int A, B, X1, X2,Y1, Y2;
cout<<"Masukan Nilai X1,X2,Y1,dan Y2 : "<<endl;
cin>>X1>>X2>>Y1>>Y2;
A=((X1+Y1)/2);
B=((X2+Y2)/2);
cout<<"Titik Tengah Garisnya"<<X1<<"dan"<<Y1<<endl;
cout<<"Adalah ="<<A<<endl<<endl;
cout<<"Titik Tengah Garisnya"<<X2<<"dan"<<Y2<<endl;
cout<<"Adalah ="<<B<<endl;
system("pause");
return 0;
}