BAB 3.1=>MENGHITUNG TITIK TENGAH MENGGUNAKAN C++ DAN RAPTOR

1.) C++

#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;
}
 
 2.) RAPTOR

Share this

Related Posts

Previous
Next Post »

:)
:(
hihi
:-)
:D
=D
:-d
;(
;-(
@-)
:P
:o
:>)
(o)
:p
:-?
(p)
:-s
(m)
8-)
:-t
:-b
b-(
:-#
=p~
$-)
(y)
(f)
x-)
(k)
(h)
cheer