Selasa, 15 Maret 2016

Program C++

 Program 2
#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 i,z,m;
    float u;
    cout<<"masukkan nilai I :";cin>>i;
    cout<<"masukkan nilai Z :";cin>>z;
    u=i/z;
    m=i%z;
    cout<<i<<"__"<<z<<"__"<<u<<"__"<<m;
    return 0;
}

0 komentar: