berikut program c++
#include <iostream>
#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) {
string a;
int m,cm; double inc;
cout<<"masukan nilai Meter : ";cin>>m;
cm = m * 100; inc = cm / 2.54;
cout<<"M : "<<m<<endl;
cout<<"CM : "<<cm<<endl;
cout<<"INC : "<<inc<<endl;
return 0;
}
dan tampilannya
input kan angka. per meter


Tidak ada komentar:
Posting Komentar