:::: MENU ::::
  • life isn't about getting and taking , it's about giving and being

  • Identify your passion then design your future

Jumat, 18 Maret 2016


1. Algoritma mencari jumlah 3 bilangan bulat
    - Deklarasi
       m,n tipe data integer (input)
       q,r tipe data integer (output)
    - Deskripsi
      membaca inputan variable m,n
      variable m,n dimasukkan ke rumus q=m/n dan r=m%n
      outputnya rumus q dan r

 2.Sourch Code C++

#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) {
int m,n,q,r;

cout<<"Masukkan nilai m : ";
cin>>m;
cout<<"Masukkan nilai n : ";
cin>>n;

q=m/n;
r=m%n;
cout<<endl;
cout<<"Hasil q : "<<q<<endl;
cout<<"Hasil r : "<<r<<endl;
    return 0;
}


3.Dengan Raptor

0 komentar:

Posting Komentar

Thank's udah mampir guys