Create FaktorBilangan.c
parent
1a45d67f34
commit
53c2a6da17
|
@ -0,0 +1,11 @@
|
|||
#include <stdio.h>
|
||||
int main () {
|
||||
int i,awal;
|
||||
|
||||
scanf("%d",&awal);
|
||||
for(i=awal;i>=1;i--) {
|
||||
if(awal % i == 0) {
|
||||
printf("%d\n",i);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue