Breaking News
Loading...
Selasa, 15 Maret 2016

Tugas 2.6

Menghitung Nilai R 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) {
 int m,q,n,r;
 cout<<" \t\tMenghitung Nilai R Dengan Hasil Sisa Dari M "<<endl;
 cout<<" Masukkan q = ";
 cin>>q;
 cout<<" Masukkan n = ";
 cin>>n;
 m=q*n+3;
 r=q-n;
 cout<<" m = "<<m<<"\n"<<m<<" = "<<q<<" * "<<n<<" + "<<r;
 cout<<" Jadi R-Nya = "<<r<<endl;
 return 0;
}


Hasil setelah di kompile




Raptornya :




0 komentar:

Posting Komentar

Copyright © 2014 My Blog My Adventure All Right Reserved