#include <iostream>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
using namespace std;
int main(int argc, char** argv) {
float a,b,c;
cout<<"Mencari Titik Tengah\n";
cout<<"Masukkan Titik Pertama : ";
cin>>a;
cout<<"MAsukkan Titik Ke-dua : ";
cin>>b;
c=(a+b)/2;
cout<<"Titik Tengah adalah : "<<c;
return 0;
}
Langganan:
Posting Komentar (Atom)
Tidak ada komentar:
Posting Komentar