Program Mencari Luas Kerucut C++

Rabu, 09 Februari 2011 #include <iostream.h>
main()
{
int phi,r,s,l;;
cout<<"Program Menghitung Luas Kerucut"<<endl;
cout<<"==============================="<<endl;

cout<<"Masukan panjang jari-jari kerucut (r) : ";
cin>>r;
cout<<"Masukan panjang sisi miring kerucut (s): ";
cin>>s;
phi=3.14;
l=(phi*r)*(s*r);
cout<<"Luas= (phi*r)*(s*r)"<<endl;
cout<<"Luas Kerucut : "<<l<<endl;
}

0 komentar:

Posting Komentar

 
 
 
 
Copyright © Oes blog