Monday, March 21, 2016
TUGAS 2.6
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;
}
Subscribe to:
Post Comments (Atom)
mencari huruf pada kalimat
#include <iostream> using namespace std; int main() { int a,x; int y=0,b=0,MAKS = 256; char kata[MAKS],huruf[M...
No comments:
Post a Comment