Senin, 14 Maret 2016

KASUS 2.3

HASIL KODING 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) {
    int m,cm;
    float inchi;
    cout<<"konversi meter ke cm atau inchi"<<endl;
    cout<<"masukkan Meter    =";cin>>m;
    cm=m*100;
    cout<<"nilai CM    ="<<cm;
    inchi=m*100/2.54;
    cout<<"nilai inchi    ="<<inchi;
    return 0;

output c++:


output raptor:




0 komentar:

Posting Komentar