Monday, July 23, 2012

Pemrograman C++ Mencari Luas Lingkaran

Jika sobat semua yang telah mencari-cari koding untuk mencari luas lingkaran pada Pemrograman C++, Berikut kodingnya :

# include
# include
# define phi 3.14

void main ()
{
float r,L,K;

cout <<"\n= LUAS & KELILING LINGKARAN =";
cout <<"\n\n";
cout <<"\nMasukkan jari-jari = ";
cin >>r;
cout <<"\nphi = " <

L = phi*r*r;
K = 2*phi*r;

cout <<"\n\n";
cout <<"\n= HASIL =";
cout <<"\n\n";
cout <<"\nLuas = "<
cout <<"\nKeliling = "<

getch();
}



Related Post



Digg Google Bookmarks reddit Mixx StumbleUpon Technorati Yahoo! Buzz DesignFloat Delicious BlinkList Furl

0 comments: on "Pemrograman C++ Mencari Luas Lingkaran"

Post a Comment