Programe Lingkaran
#include <iostream>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
using namespace std;
class Lingkaran{
public:
int s;
int keliling(){
return((4*s));
}
};
int main(int argc, char** argv) {
Lingkaran Lingkaran;
int a,keliling;
cout<<"Luas : ";cin>>a;
Lingkaran.s=a;
cout<<"keliling : "<<Lingkaran.keliling();
}
ABOUT THE AUTHOR
A web designer from India. And then you write some more information about yourself like this to fill out the space that is left.

0 komentar:
Posting Komentar