Wednesday 30 December 2015

Program menghitung Volume Kubus di Dev C++

#include <iostream>
#include <conio.h>
#include <cstdlib>
using namespace std;
int main(int argc, char** argv) {
system("color a");
float s, vol;

cout<<"|========================|\n";
cout<<"|Menghitung Volume Kubus |\n";
cout<<"|========================|\n";
cout<<"|Thedi Wrys  (1500018081)|\n";
cout<<"|========================|\n \n";

cout<<"masukkan sisi:";cin>>s;
vol=s*s*s;
cout<<"volume nya adalah "<<vol;
 return 0;
}
Volume Kubus
thediwrys.blogspot.com


No comments:

Post a Comment