Jawaban:
#include <iostream>
using namespace std;
main() {
int r;
float Luaskubus, Volumekubus;
unsigned int pilihan;
cout << "MENGHITUNG LUAS DAN VOLUME KUBUS" << endl;
cout << "************************"<<endl;
cout << "LUAS KUBUS"<<endl;
cout << "Masukan Rusuk = "; cin >>r; Luaskubus = 6*r*r;
cout << "Luas Kubus = " << Luaskubus << endl;
cout << "VOLUME KUBUS"<<endl;
cout << "Masukan Rusuk = "; cin >>r;
Volumekubus = r*r*r;
cout << "Volume Kubus = " << Volumekubus << endl;
}
Penjelasan:
" Life is not a problem to be solved but a reality to be experienced! "
© Copyright 2013 - 2024 KUDO.TIPS - All rights reserved.
Jawaban:
#include <iostream>
using namespace std;
main() {
int r;
float Luaskubus, Volumekubus;
unsigned int pilihan;
cout << "MENGHITUNG LUAS DAN VOLUME KUBUS" << endl;
cout << "************************"<<endl;
cout << "LUAS KUBUS"<<endl;
cout << "Masukan Rusuk = "; cin >>r; Luaskubus = 6*r*r;
cout << "Luas Kubus = " << Luaskubus << endl;
cout << "VOLUME KUBUS"<<endl;
cout << "Masukan Rusuk = "; cin >>r;
Volumekubus = r*r*r;
cout << "Volume Kubus = " << Volumekubus << endl;
}
Penjelasan: