#include <iostream>
using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char *argv[]) {
double a,b,c;
cout<<"mencari titik tengah diantaradua titik"<<endl;
cout<<"titik a=";
cin>>a;
cout<<"titik b=";
cin>>b;
c=(a+b)/2;
cout<<"titik tengah"<<c;
return 0;
}
hasil:
0 komentar:
Posting Komentar