Menghitung Volume Tabung C++

# include <iostream.h>
# include <conio.h>

void main ()
{
int r,t,volume;
const phi=3.14;
cout<< " PROGAM MENGHITUNG VOLUME TABUNG"<<endl;
cout<< " #######################################\n";


cout << " masukkan tinggi = ";
cin >> t;
cout << " masukkan jari-jari = ";
cin >> r;
volume = phi*r^2*t;

cout<< " jadi volume tabung adalah = "<<volume;
getch();
}



Share:

0 comments:

https://fikiirawan.blogspot.com/

Blog Archive

Pages

Blog Archive