#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 m,cm,inchi;
cout<<"Masukkan Meter = ";
cin>>m;
cm = m*100;
inchi = (m*100)/2.54;
cout<<"\nHasil Meter ke cm = "<<cm;
cout<<"\nHasil Meter ke inchi = "<<inchi;
return 0;
}
Untuk program raptornya sebagai berikut
No comments:
Post a Comment