#include <iostream>
#include <math.h>
using namespace std;
int main(){
int A,B,C,D,M,N,H,I,J,K;
cout << "Masukkan angka A ";cin >> A;
cout << "Masukkan angka B ";cin >> B;
cout << "Masukkan angka C ";cin >> C;
cout << "Masukkan angka D ";cin >> D;
cout << "Masukkan angka M ";cin >> M;
cout << "Masukkan angka N ";cin >> N;
cout << "Masukkan angka H ";cin >> H;
cout << "Masukkan angka I ";cin >> I;
cout << "Masukkan angka J ";cin >> J;
cout << "Masukkan angka K ";cin >> K ;
int soal1,soal2,soal3;
soal1 = (K+C)/M*N;
soal2 = pow(A*B*C,D);
soal3 = H + I * J / K;
cout << "Jawaban Soal 1" << soal1;
cout << "Jawaban Soal 2" << soal2;
cout << "Jawaban Soal 3" << soal2;
return 0;
}
" Life is not a problem to be solved but a reality to be experienced! "
© Copyright 2013 - 2024 KUDO.TIPS - All rights reserved.
#include <iostream>
#include <math.h>
using namespace std;
int main(){
int A,B,C,D,M,N,H,I,J,K;
cout << "Masukkan angka A ";cin >> A;
cout << "Masukkan angka B ";cin >> B;
cout << "Masukkan angka C ";cin >> C;
cout << "Masukkan angka D ";cin >> D;
cout << "Masukkan angka M ";cin >> M;
cout << "Masukkan angka N ";cin >> N;
cout << "Masukkan angka H ";cin >> H;
cout << "Masukkan angka I ";cin >> I;
cout << "Masukkan angka J ";cin >> J;
cout << "Masukkan angka K ";cin >> K ;
int soal1,soal2,soal3;
soal1 = (K+C)/M*N;
soal2 = pow(A*B*C,D);
soal3 = H + I * J / K;
cout << "Jawaban Soal 1" << soal1;
cout << "Jawaban Soal 2" << soal2;
cout << "Jawaban Soal 3" << soal2;
return 0;
}