Monday, March 21, 2016

TUGAS 2.3

#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

mencari huruf pada kalimat

#include <iostream> using namespace std; int main() {   int a,x;   int y=0,b=0,MAKS = 256;   char kata[MAKS],huruf[M...