#include< iostream.h >
void tt( )
{
int x1,x2,xt,y1,y2,yt;
cout<<"titik x1 = ";
cin>>x1;
cout<<"titik x2 = ";
cin>>x2;
cout<<"titik y1 = ";
cin>>y1;
cout<<"titik y2 = ";
cin>>y2;
cout<< endl;
xt=(x1+x2)/2;
yt=(y1+y2)/2;
cout<<"nilai titik tengah= (" <<<","<<<") \n";
cout<< endl;
}
int main ( )
{
tt( );
return 0;
}
Tidak ada komentar:
Posting Komentar