#pragma argsused
#include <iostream.h>
class faktor{
int a;
public:
void input(){
cout<<"masukkan bilangan yang ingin dicari faktor'a :";
cin>>a;
}
void proses(){
for (int b=2; b<a; b++){
if (a%b==0){
cout<<" "<<b;
}
}}
};
int main(){
int x;
faktor p;
p.input();
p.proses();
cin>>x;
return 0;
}
download program c++
download program jeliot
download program java
download program delphi
download program pascal
Friday, March 16, 2012
Subscribe to:
Post Comments (Atom)
tdk mau jalan ni programnya
ReplyDelete