Breaking News
Loading...
Selasa, 15 Maret 2016

Tugas 2.3

Mengubah Meter ke Cm dan Inchi dengan C++ dan Raptor :


Dev C++ :


#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) {
 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;

}


Hasil Setelah di Kompile :

Raptornya :



0 komentar:

Posting Komentar

Copyright © 2014 My Blog My Adventure All Right Reserved