Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main(){
- int s;
- float luas_p;
- cout<<"Program Menghitung Luas Kubus"<<endl<<endl;
- cout<<"Masukan nilai sisi ( s ) = ";
- cin>>s;
- luas_p=6*s*s;
- cout<<endl;
- cout<<"Luas permukaan kubus dengan sisi "<<s<<" adalah "<<luas_p;
- cout<<endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement