Bab 1 (Kasus 7)
Kasus 7
#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 beras=5500;
int uang=20000;
float sisa=uang/beras;
cout << " Ibu memiliki uang Rp."<< uang<<" sedangkan harga beras perkilo Rp."<< beras << endl;
cout << " ___________________________________________________________________________ "<< endl;
cout << " Jadi uang ibu Rp."<<uang<<" Memperoleh beras sebanyak "<<sisa<<" Kg"<< endl;
return 0;
}
Dibawah ini cara dengan mengguanakan Raptor :
0 komentar: